deno.land / std@0.166.0 / node / _crypto / crypto_browserify / evp_bytes_to_key_test.ts

evp_bytes_to_key_test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// Copyright 2017 crypto-browserify. All rights reserved. MIT license.
import { assertThrows } from "../../../testing/asserts.ts";import { EVP_BytesToKey } from "./evp_bytes_to_key.ts";import { Buffer } from "../../buffer.ts";
Deno.test("salt buffer length is 7", function () { assertThrows( function () { EVP_BytesToKey(Buffer.alloc(5), Buffer.alloc(7), 1, 1); }, Error, "salt should be Buffer with 8 byte length", );});
std

Version Info

Tagged at
a year ago