/mcuboot-latest/boot/bootutil/include/bootutil/crypto/ |
D | aes_kw.h | 51 static inline int bootutil_aes_kw_set_unwrap_key(bootutil_aes_kw_context *ctx, const uint8_t *k, ui… in bootutil_aes_kw_set_unwrap_key() argument 53 return mbedtls_nist_kw_setkey(ctx, MBEDTLS_CIPHER_ID_AES, k, klen * 8, 0); in bootutil_aes_kw_set_unwrap_key() 75 static inline int bootutil_aes_kw_set_unwrap_key(bootutil_aes_kw_context *ctx, const uint8_t *k, ui… in bootutil_aes_kw_set_unwrap_key() argument 83 rc = tc_aes128_set_decrypt_key(ctx, k); in bootutil_aes_kw_set_unwrap_key() 98 int8_t i, j, k; in bootutil_aes_kw_unwrap() local 104 for (k = 0; k < 8; k++) { in bootutil_aes_kw_unwrap() 105 A[k] = wrapped_key[k]; in bootutil_aes_kw_unwrap() 106 key[k] = wrapped_key[8 + k]; in bootutil_aes_kw_unwrap() 107 key[8 + k] = wrapped_key[16 + k]; in bootutil_aes_kw_unwrap() 112 for (k = 0; k < 8; k++) { in bootutil_aes_kw_unwrap() [all …]
|
D | aes_ctr.h | 59 static inline int bootutil_aes_ctr_set_key(bootutil_aes_ctr_context *ctx, const uint8_t *k) in bootutil_aes_ctr_set_key() argument 61 return mbedtls_aes_setkey_enc(ctx, k, BOOTUTIL_CRYPTO_AES_CTR_KEY_SIZE * 8); in bootutil_aes_ctr_set_key() 89 static inline int bootutil_aes_ctr_set_key(bootutil_aes_ctr_context *ctx, const uint8_t *k) in bootutil_aes_ctr_set_key() argument 92 rc = tc_aes128_set_encrypt_key(ctx, k); in bootutil_aes_ctr_set_key()
|
/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | aes_encrypt.c | 70 int tc_aes128_set_encrypt_key(TCAesKeySched_t s, const uint8_t *k) in tc_aes128_set_encrypt_key() argument 81 } else if (k == (const uint8_t *) 0) { in tc_aes128_set_encrypt_key() 86 s->words[i] = (k[Nb*i]<<24) | (k[Nb*i+1]<<16) | in tc_aes128_set_encrypt_key() 87 (k[Nb*i+2]<<8) | (k[Nb*i+3]); in tc_aes128_set_encrypt_key() 101 static inline void add_round_key(uint8_t *s, const unsigned int *k) in add_round_key() argument 103 s[0] ^= (uint8_t)(k[0] >> 24); s[1] ^= (uint8_t)(k[0] >> 16); in add_round_key() 104 s[2] ^= (uint8_t)(k[0] >> 8); s[3] ^= (uint8_t)(k[0]); in add_round_key() 105 s[4] ^= (uint8_t)(k[1] >> 24); s[5] ^= (uint8_t)(k[1] >> 16); in add_round_key() 106 s[6] ^= (uint8_t)(k[1] >> 8); s[7] ^= (uint8_t)(k[1]); in add_round_key() 107 s[8] ^= (uint8_t)(k[2] >> 24); s[9] ^= (uint8_t)(k[2] >> 16); in add_round_key() [all …]
|
D | aes_decrypt.c | 62 int tc_aes128_set_decrypt_key(TCAesKeySched_t s, const uint8_t *k) in tc_aes128_set_decrypt_key() argument 64 return tc_aes128_set_encrypt_key(s, k); in tc_aes128_set_decrypt_key() 92 static inline void add_round_key(uint8_t *s, const unsigned int *k) in add_round_key() argument 94 s[0] ^= (uint8_t)(k[0] >> 24); s[1] ^= (uint8_t)(k[0] >> 16); in add_round_key() 95 s[2] ^= (uint8_t)(k[0] >> 8); s[3] ^= (uint8_t)(k[0]); in add_round_key() 96 s[4] ^= (uint8_t)(k[1] >> 24); s[5] ^= (uint8_t)(k[1] >> 16); in add_round_key() 97 s[6] ^= (uint8_t)(k[1] >> 8); s[7] ^= (uint8_t)(k[1]); in add_round_key() 98 s[8] ^= (uint8_t)(k[2] >> 24); s[9] ^= (uint8_t)(k[2] >> 16); in add_round_key() 99 s[10] ^= (uint8_t)(k[2] >> 8); s[11] ^= (uint8_t)(k[2]); in add_round_key() 100 s[12] ^= (uint8_t)(k[3] >> 24); s[13] ^= (uint8_t)(k[3] >> 16); in add_round_key() [all …]
|
D | ecc_dsa.c | 100 unsigned hash_size, uECC_word_t *k, uint8_t *signature, in uECC_sign_with_k() argument 114 if (uECC_vli_isZero(k, num_words) || in uECC_sign_with_k() 115 uECC_vli_cmp(curve->n, k, num_n_words) != 1) { in uECC_sign_with_k() 119 carry = regularize_k(k, tmp, s, curve); in uECC_sign_with_k() 137 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k' = rand * k */ in uECC_sign_with_k() 138 uECC_vli_modInv(k, k, curve->n, num_n_words); /* k = 1 / k' */ in uECC_sign_with_k() 139 uECC_vli_modMult(k, k, tmp, curve->n, num_n_words); /* k = 1 / k */ in uECC_sign_with_k() 152 uECC_vli_modMult(s, s, k, curve->n, num_n_words); /* s = (e + r*d) / k */ in uECC_sign_with_k() 165 uECC_word_t k[NUM_ECC_WORDS]; in uECC_sign() local 177 uECC_vli_mmod(k, _random, curve->n, BITS_TO_WORDS(curve->num_n_bits)); in uECC_sign() [all …]
|
D | cmac_mode.c | 224 uint8_t *k; in tc_cmac_final() local 235 k = (uint8_t *) s->K1; in tc_cmac_final() 242 k = (uint8_t *) s->K2; in tc_cmac_final() 245 s->iv[i] ^= s->leftover[i] ^ k[i]; in tc_cmac_final()
|
D | ecc.c | 266 wordcount_t i, k; in uECC_vli_mult() local 269 for (k = 0; k < num_words; ++k) { in uECC_vli_mult() 271 for (i = 0; i <= k; ++i) { in uECC_vli_mult() 272 muladd(left[i], right[k - i], &r0, &r1, &r2); in uECC_vli_mult() 275 result[k] = r0; in uECC_vli_mult() 281 for (k = num_words; k < num_words * 2 - 1; ++k) { in uECC_vli_mult() 283 for (i = (k + 1) - num_words; i < num_words; ++i) { in uECC_vli_mult() 284 muladd(left[i], right[k - i], &r0, &r1, &r2); in uECC_vli_mult() 286 result[k] = r0; in uECC_vli_mult() 774 uECC_word_t regularize_k(const uECC_word_t * const k, uECC_word_t *k0, in regularize_k() argument [all …]
|
/mcuboot-latest/scripts/imgtool/keys/ |
D | ecdsa_test.py | 34 k = ECDSA256P1.generate() 35 k.export_private(name1, b'secret') 53 k = ECDSA256P1.generate() 56 k.emit_public_pem(pubpem) 61 k.emit_c_public(ccode) 66 k.emit_c_public_hash(hashccode) 71 k.emit_rust_public(rustcode) 76 k.emit_raw_public(pubraw) 80 k.emit_raw_public_hash(hashraw) 86 k = ECDSA256P1.generate() [all …]
|
D | ed25519_test.py | 35 k = Ed25519.generate() 36 k.export_private(name1, b'secret') 54 k = Ed25519.generate() 57 k.emit_public_pem(pubpem) 62 k.emit_c_public(ccode) 67 k.emit_c_public_hash(hashccode) 72 k.emit_rust_public(rustcode) 77 k.emit_raw_public(pubraw) 81 k.emit_raw_public_hash(hashraw) 87 k = Ed25519.generate() [all …]
|
D | rsa_test.py | 43 k = RSA.generate(key_size=key_size) 44 k.export_private(name1, b'secret') 64 k = RSA.generate(key_size=key_size) 67 k.emit_public_pem(pubpem) 72 k.emit_c_public(ccode) 77 k.emit_c_public_hash(hashccode) 82 k.emit_rust_public(rustcode) 87 k.emit_raw_public(pubraw) 91 k.emit_raw_public_hash(hashraw) 98 k = RSA.generate(key_size=key_size) [all …]
|
D | ed25519.py | 66 k = self.key 68 k = self.key.public_key() 69 return k.verify(signature=signature, data=digest)
|
D | ecdsa.py | 178 k = self.key 180 k = self.key.public_key() 181 return k.verify(signature=signature, data=payload, 251 k = self.key 253 k = self.key.public_key() 254 return k.verify(signature=signature, data=payload,
|
D | x25519.py | 116 k = self.key 118 k = self.key.public_key() 119 return k.verify(signature=signature, data=digest)
|
D | rsa.py | 77 k = self.key 79 k = self.key.public_key() 80 return k.verify(signature=signature, data=payload,
|
/mcuboot-latest/boot/boot_serial/src/ |
D | zcbor_bulk.h | 41 #define ZCBOR_MAP_DECODE_KEY_DECODER(k, dec, vp) \ argument 44 .value = (uint8_t *)k, \ 45 .len = sizeof(k) - 1, \ 67 #define ZCBOR_MAP_DECODE_KEY_VAL(k, dec, vp) \ argument 68 ZCBOR_MAP_DECODE_KEY_DECODER(STRINGIFY(k), dec, vp)
|
/mcuboot-latest/ci/ |
D | get_features.py | 43 print(" ".join([k for k in config['features'] if k != 'default']))
|
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/ |
D | aes.h | 79 int tc_aes128_set_encrypt_key(TCAesKeySched_t s, const uint8_t *k); 110 int tc_aes128_set_decrypt_key(TCAesKeySched_t s, const uint8_t *k);
|
D | ecc_dsa.h | 114 unsigned int hash_size, uECC_word_t *k, uint8_t *signature,
|
/mcuboot-latest/ |
D | enc-ec256-priv.pem | 4 k+bufYamrl6TcnTZ4Vocm2UaK2FBKAJzhBKXOi2ioGd3AtpnGkvd13HM
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_ecc_dsa.c | 81 unsigned int k[NUM_ECC_WORDS]; in sign_vectors() local 105 memset(k, 0, NUM_ECC_BYTES); in sign_vectors() 106 string2scalar(k, NUM_ECC_WORDS, k_vec[i]); in sign_vectors() 134 sizeof(digest_bytes), k, sig_bytes, uECC_secp256r1()) == 0) { in sign_vectors() 182 char *k[] = { in cavp_sign() local 340 return sign_vectors(&sha256_ctx, d, k, Msg, Qx, Qy, R, S, 15, verbose); in cavp_sign()
|
/mcuboot-latest/testplan/mynewt/ |
D | key_rsa.pem | 24 k/07off/AoGBAPx9NTR13dbDhlG6hyxEtCrTyxKKXs3vmTfjmaQnicvM/oceRYed
|
/mcuboot-latest/scripts/imgtool/ |
D | main.py | 570 cmds = [k for k in self.commands] 571 aliases = [k for k in self._aliases]
|
/mcuboot-latest/docs/ |
D | imgtool.md | 18 ./scripts/imgtool.py keygen -k filename.pem -t rsa-2048 42 ./scripts/imgtool.py getpub -k filename.pem 62 -k, --key filename
|
/mcuboot-latest/ext/fiat/src/ |
D | curve25519.c | 599 int k; in slide() local 614 for (k = i + b; k < 256; ++k) { in slide() 615 if (!r[k]) { in slide() 616 r[k] = 1; in slide() 619 r[k] = 0; in slide()
|
/mcuboot-latest/ci/fih_test_docker/ |
D | damage_image.py | 26 tlvs = {v: f"IMAGE_TLV_{k}" for k, v in TLV_VALUES.items()}
|