Home
last modified time | relevance | path

Searched refs:semiblocks (Results 1 – 2 of 2) sorted by relevance

/openthread-2.7.6/third_party/mbedtls/repo/library/
Dnist_kw.c186 size_t semiblocks = 0; in mbedtls_nist_kw_wrap() local
254 semiblocks = ( ( in_len + padlen ) / KW_SEMIBLOCK_LENGTH ) + 1; in mbedtls_nist_kw_wrap()
256 s = 6 * ( semiblocks - 1 ); in mbedtls_nist_kw_wrap()
272 if( semiblocks < MIN_SEMIBLOCKS_COUNT ) in mbedtls_nist_kw_wrap()
294 if( R2 >= output + ( semiblocks * KW_SEMIBLOCK_LENGTH ) ) in mbedtls_nist_kw_wrap()
299 *out_len = semiblocks * KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
305 memset( output, 0, semiblocks * KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_wrap()
322 const unsigned char *input, size_t semiblocks, in unwrap() argument
327 const size_t s = 6 * ( semiblocks - 1 ); in unwrap()
332 unsigned char *R = output + ( semiblocks - 2 ) * KW_SEMIBLOCK_LENGTH; in unwrap()
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_nist_kw.data27 NIST KW lengths #1 KW plaintext OK (2 to 2^54 - 1 semiblocks)
33 NIST KW lengths #3 KW ciphertext OK (3 to 2^54 semiblocks)
36 NIST KW lengths #4 KWP ciphertext OK (2 to 2^29 semiblocks)
39 NIST KW lengths #5 KW plaintext too short (2 to 2^54 - 1 semiblocks)
45 NIST KW lengths #8 KW ciphertext too short (3 to 2^54 semiblocks)
48 NIST KW lengths #9 KWP ciphertext too short (2 to 2^29 semiblocks)
51 NIST KW lengths #10 KW plaintext not a multiple of semiblocks.
54 NIST KW lengths #11 KW ciphertext not a multiple of semiblocks.
57 NIST KW lengths #12 KWP ciphertext not a multiple of semiblocks.
72 NIST KW lengths #17 KW plaintext NULL (2 to 2^54 - 1 semiblocks)