2012-10-22 13:08:42 +00:00
|
|
|
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef BIN_CRYPTO_H_
|
|
|
|
#define BIN_CRYPTO_H_
|
|
|
|
|
|
|
|
#include "bin/builtin.h"
|
|
|
|
#include "bin/utils.h"
|
|
|
|
|
|
|
|
|
2013-04-25 14:22:30 +00:00
|
|
|
namespace dart {
|
|
|
|
namespace bin {
|
|
|
|
|
2012-10-22 13:08:42 +00:00
|
|
|
class Crypto {
|
|
|
|
public:
|
|
|
|
static bool GetRandomBytes(intptr_t count, uint8_t* buffer);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_ALLOCATION();
|
|
|
|
DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto);
|
|
|
|
};
|
|
|
|
|
2013-04-25 14:22:30 +00:00
|
|
|
} // namespace bin
|
|
|
|
} // namespace dart
|
|
|
|
|
2012-10-22 13:08:42 +00:00
|
|
|
#endif // BIN_CRYPTO_H_
|
|
|
|
|