/external/wpa_supplicant_8/src/crypto/ |
aes-cbc.c | 19 * @iv: Encryption IV for CBC mode (16 bytes) 24 int aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len) 37 os_memcpy(cbc, iv, AES_BLOCK_SIZE); 55 * @iv: Decryption IV for CBC mode (16 bytes) 60 int aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len) 73 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
if_alg.h | 28 __u8 iv[0]; member in struct:af_alg_iv
|
/system/keymaster/include/keymaster/ |
wrapped_key.h | 41 ASN1_OCTET_STRING* iv; member in struct:keymaster::km_wrapped_key 50 ASN1_SIMPLE(KM_WRAPPED_KEY, iv, ASN1_OCTET_STRING), 58 const KeymasterBlob& iv, keymaster_key_format_t key_format, 63 keymaster_error_t parse_wrapped_key(const KeymasterKeyBlob& wrapped_key, KeymasterBlob* iv,
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
OFBBlockCipher.java | 16 private byte[] IV; 39 this.IV = new byte[cipher.getBlockSize()]; 45 * Initialise the cipher and, possibly, the initialisation vector (IV). 46 * If an IV isn't passed as part of the parameter, the IV will be all zeros. 47 * An IV which is too short is handled in FIPS compliant fashion. 63 byte[] iv = ivParam.getIV(); 65 if (iv.length < IV.length) 67 // prepend the supplied IV with zeros (per FIPS PUB 81 [all...] |
/frameworks/base/services/core/java/com/android/server/accounts/ |
CryptoHelper.java | 30 private static final String KEY_IV = "iv"; 66 byte[] iv = cipher.getIV(); 67 byte[] mac = createMac(encryptedBytes, iv); 72 encryptedBundle.putByteArray(KEY_IV, iv); 80 byte[] iv = bundle.getByteArray(KEY_IV); 83 if (!verifyMac(encryptedBytes, iv, mac)) { 88 IvParameterSpec ivSpec = new IvParameterSpec(iv); 102 private boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macArray) 111 return constantTimeArrayEquals(macArray, createMac(cipherArray, iv)); 115 private byte[] createMac(@NonNull byte[] cipher, @NonNull byte[] iv) throws GeneralSecurityException [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
IvAlgorithmParameters.java | 17 private byte[] iv; field in class:IvAlgorithmParameters 36 return Arrays.clone(iv); 48 return new IvParameterSpec(iv); 51 throw new InvalidParameterSpecException("unknown parameter spec passed to IV parameters object."); 60 throw new InvalidParameterSpecException("IvParameterSpec required to initialise a IV parameters algorithm parameters object"); 63 this.iv = ((IvParameterSpec)paramSpec).getIV(); 81 this.iv = Arrays.clone(params); 111 throw new IOException("Unknown parameters format in IV parameters object"); 116 return "IV Parameters";
|
/external/syslinux/gpxe/src/crypto/ |
axtls_aes.c | 46 void *iv; local 59 /* IV is not a relevant concept at this stage; use a dummy 62 iv = &aes_ctx->axtls_ctx.iv; 64 AES_set_key ( &aes_ctx->axtls_ctx, key, iv, mode ); 75 * @v iv Initialisation vector 77 static void aes_setiv ( void *ctx __unused, const void *iv __unused ) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
CellTileView.java | 46 protected void updateIcon(ImageView iv, State state) { 48 super.updateIcon(iv, state); 50 } else if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) { 52 iv.setImageDrawable(mSignalDrawable); 53 iv.setTag(R.id.qs_icon_tag, state.icon);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
DESedeWrapEngine.java | 42 /** Field iv */ 43 private byte[] iv; field in class:DESedeWrapEngine 92 // Hm, we have no IV but we want to wrap ?!? 93 // well, then we have to create our own IV. 94 this.iv = new byte[8]; 95 sr.nextBytes(iv); 97 this.paramPlusIV = new ParametersWithIV(this.param, this.iv); 103 this.iv = this.paramPlusIV.getIV(); 108 if ((this.iv == null) || (this.iv.length != 8) [all...] |
/prebuilts/go/darwin-x86/src/crypto/cipher/ |
cfb_test.go | 20 key, iv, plaintext, ciphertext string 54 iv, err := hex.DecodeString(test.iv) 73 cfb := cipher.NewCFBEncrypter(block, iv) 80 cfbdec := cipher.NewCFBDecrypter(block, iv) 98 iv := make([]byte, block.BlockSize()) 99 rand.Reader.Read(iv) 100 cfb := cipher.NewCFBEncrypter(block, iv) 105 cfbdec := cipher.NewCFBDecrypter(block, iv)
|
benchmark_test.go | 95 var iv [16]byte 97 ctr := cipher.NewCFBEncrypter(aes, iv[:]) 110 var iv [16]byte 112 ctr := cipher.NewCFBDecrypter(aes, iv[:]) 125 var iv [16]byte 127 ctr := cipher.NewOFB(aes, iv[:]) 140 var iv [16]byte 142 ctr := cipher.NewCTR(aes, iv[:]) 155 var iv [16]byte 157 cbc := cipher.NewCBCEncrypter(aes, iv[:] [all...] |
ctr.go | 28 NewCTR(iv []byte) Stream 32 // counter mode. The length of iv must be the same as the Block's block size. 33 func NewCTR(block Block, iv []byte) Stream { 35 return ctr.NewCTR(iv) 37 if len(iv) != block.BlockSize() { 38 panic("cipher.NewCTR: IV length must equal block size") 46 ctr: dup(iv),
|
/prebuilts/go/linux-x86/src/crypto/cipher/ |
cfb_test.go | 20 key, iv, plaintext, ciphertext string 54 iv, err := hex.DecodeString(test.iv) 73 cfb := cipher.NewCFBEncrypter(block, iv) 80 cfbdec := cipher.NewCFBDecrypter(block, iv) 98 iv := make([]byte, block.BlockSize()) 99 rand.Reader.Read(iv) 100 cfb := cipher.NewCFBEncrypter(block, iv) 105 cfbdec := cipher.NewCFBDecrypter(block, iv)
|
benchmark_test.go | 95 var iv [16]byte 97 ctr := cipher.NewCFBEncrypter(aes, iv[:]) 110 var iv [16]byte 112 ctr := cipher.NewCFBDecrypter(aes, iv[:]) 125 var iv [16]byte 127 ctr := cipher.NewOFB(aes, iv[:]) 140 var iv [16]byte 142 ctr := cipher.NewCTR(aes, iv[:]) 155 var iv [16]byte 157 cbc := cipher.NewCBCEncrypter(aes, iv[:] [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLCipherChaCha20.java | 55 throw new InvalidAlgorithmParameterException("IV must be 12 bytes long"); 57 iv = ivParams.getIV(); 61 "IV must be specified when decrypting"); 63 iv = new byte[NONCE_SIZE_BYTES]; 65 random.nextBytes(iv); 67 NativeCrypto.RAND_bytes(iv); 84 BLOCK_SIZE_BYTES, encodedKey, iv, blockCounter); 99 outputOffset, inputLenRemaining, encodedKey, iv, blockCounter);
|
/external/tpm2/ |
Context_spt.c | 17 // TPM2_ConextSave() and TPM2_ContextLoad() to create the symmetric encryption key and iv 23 TPM2B_IV *iv // OUT: the IV. 49 // Get the size of the IV for the algorithm 50 iv->t.size = CryptGetSymmetricBlockSize(CONTEXT_ENCRYPT_ALG, symKeyBits); 51 // KDFa to generate symmetric key and IV value 53 &handle2B.b, (symKey->t.size + iv->t.size) * 8, kdfResult, NULL); 57 // Copy the rest as the IV 58 MemoryCopy(iv->t.buffer, &kdfResult[symKey->t.size], iv->t.size [all...] |
/frameworks/rs/tests/java_api/MathErr/src/com/example/android/rs/matherr/ |
math_err.rs | 23 int32_t iv; 32 (i) = gf_u.iv; \ 40 sf_u.iv = (i); \
|
/system/bt/btif/src/ |
btif_sock_util.cc | 116 struct iovec iv; local 117 memset(&iv, 0, sizeof(iv)); 119 iv.iov_base = buffer; 120 iv.iov_len = len; 122 msg.msg_iov = &iv;
|
/external/boringssl/src/fipstools/ |
cavp_aes_test.cc | 45 std::vector<uint8_t> iv, std::vector<uint8_t> in) { 53 printf("IV = %s\r\n", EncodeHex(iv.data(), iv.size()).c_str()); 61 if (!CipherOperation(cipher, &result, encrypt, key, iv, in)) { 71 iv = result; 73 iv = prev_in; 77 if (!CipherOperation(cipher, &result, encrypt, key, iv, in)) { 84 in = iv; 120 iv = result 143 std::vector<uint8_t> key, iv, in, result; local [all...] |
/external/boringssl/src/decrepit/cfb/ |
cfb.c | 29 const uint8_t *iv, int enc) { 46 AES_cfb128_encrypt(in, out, len, &cfb_ctx->ks, ctx->iv, &num,
|
/external/ltp/testcases/kernel/io/direct_io/ |
diotest_routines.h | 3 extern void vfillbuf(struct iovec *iv, int vcnt, char value);
|
/external/syslinux/gpxe/src/include/gpxe/ |
cbc.h | 35 * @v iv Initialisation vector 39 static inline void cbc_setiv ( void *ctx __unused, const void *iv, 42 memcpy ( cbc_ctx, iv, raw_cipher->blocksize ); 73 static void _cbc_name ## _setiv ( void *ctx, const void *iv ) { \ 75 cbc_setiv ( &_cbc_name ## _ctx->raw_ctx, iv, \
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
AesCtrDecryptor.h | 35 Status decrypt(const std::vector<uint8_t>& key, const Iv iv,
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ImageSwitcherTest.java | 88 ImageView iv = new ImageView(mActivity); local 89 mImageSwitcher.addView(iv); 93 assertSame(iv, mImageSwitcher.getCurrentView()); 104 assertSame(iv, mImageSwitcher.getCurrentView()); 118 ImageView iv = new ImageView(mActivity); local 119 mImageSwitcher.addView(iv); 130 assertSame(iv, mImageSwitcher.getCurrentView()); 145 assertSame(iv, mImageSwitcher.getCurrentView()); 161 ImageView iv = new ImageView(mActivity); local 162 mImageSwitcher.addView(iv); [all...] |
/external/clang/test/CodeGen/ |
overloadable.c | 20 int iv = 17; local 26 iv = f(iv);
|