/external/tpm2/ |
D | CpriSym.c | 83 BYTE *dOut, // OUT: in _cpri__AESEncryptCBC() argument 97 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESEncryptCBC() 119 *dOut++ = *pIv++; in _cpri__AESEncryptCBC() 138 BYTE *dOut, // OUT: the decrypted data in _cpri__AESDecryptCBC() argument 154 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESDecryptCBC() 174 AES_decrypt(tmp, dOut, &AesKey); in _cpri__AESDecryptCBC() 179 *dOut++ ^= *pIv; in _cpri__AESDecryptCBC() 199 BYTE *dOut, // OUT: the encrypted in _cpri__AESEncryptCFB() argument 212 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESEncryptCFB() 229 *dOut++ = *pIv++ ^= *dIn++; in _cpri__AESEncryptCFB() [all …]
|
D | CpriSym_fp.h | 11 BYTE *dOut, // OUT: the decrypted data 20 _cpri__AESDecryptCFB(BYTE *dOut, // OUT: the decrypted data 34 #define _cpri__AESDecryptCTR(dOut, keySize, key, iv, dInSize, dIn) \ argument 35 _cpri__AESEncryptCTR(((BYTE *)dOut), ((UINT32)keySize), ((BYTE *)key), \ 38 _cpri__AESDecryptECB(BYTE *dOut, // OUT: the clear text data 53 #define _cpri__AESDecryptOFB(dOut, keySizeInBits, key, iv, dInSize, dIn) \ argument 54 _cpri__AESEncryptOFB(((BYTE *)dOut), ((UINT32)keySizeInBits), ((BYTE *)key), \ 64 #define _cpri__SM4DecryptCTR(dOut, keySize, key, iv, dInSize, dIn) \ argument 65 _cpri__SM4EncryptCTR(((BYTE *)dOut), ((UINT32)keySize), ((BYTE *)key), \ 75 #define _cpri__SM4DecryptOFB(dOut, keySizeInBits, key, iv, dInSize, dIn) \ argument [all …]
|
D | CpriHash.c | 408 BYTE *dOut // OUT: hash digest in _cpri__CompleteHash() argument 418 BYTE *rBuffer = dOut; in _cpri__CompleteHash() 434 if(rBuffer != dOut) in _cpri__CompleteHash() 436 if(dOut != NULL) in _cpri__CompleteHash() 438 memcpy(dOut, temp, dOutSize); in _cpri__CompleteHash() 633 BYTE *dOut // OUT: hash digest in _cpri__CompleteHMAC() argument 646 return _cpri__CompleteHash(&localState, dOutSize, dOut); in _cpri__CompleteHMAC()
|
D | CpriHash_fp.h | 13 BYTE *dOut // OUT: hash digest 87 BYTE *dOut // OUT: hash digest
|
D | CpriECC_fp.h | 58 TPM2B_ECC_PARAMETER *dOut, // OUT: the private scalar 71 TPM2B_ECC_PARAMETER *dOut, // OUT: the private scalar
|
D | CpriECC.c | 293 TPM2B_ECC_PARAMETER *dOut, // OUT: the qualified random value in GetRandomPrivate() argument 299 pAssert(pIn != NULL && dOut != NULL && pIn->size <= MAX_ECC_KEY_BYTES); in GetRandomPrivate() 301 dOut->t.size = pIn->size; in GetRandomPrivate() 305 _cpri__GenerateRandom(dOut->t.size, dOut->t.buffer); in GetRandomPrivate() 307 if(memcmp(dOut->t.buffer, pIn->buffer, pIn->size) < 0) in GetRandomPrivate() 310 for(pb = dOut->t.buffer, i = dOut->t.size; i > 0; i--) in GetRandomPrivate() 666 TPM2B_ECC_PARAMETER *dOut, // OUT: the private scalar in _cpri__GenerateKeyEcc() argument 692 pAssert( seed != NULL && dOut != NULL && Qout != NULL && curveData != NULL); in _cpri__GenerateKeyEcc() 734 if(BnTo2B(&dOut->b, bnD, keySizeInBytes) != 1) in _cpri__GenerateKeyEcc() 739 if( (retVal = _cpri__EccPointMultiply(Qout, curveId, dOut, NULL, NULL)) in _cpri__GenerateKeyEcc() [all …]
|
D | stubs_hash.c | 65 BYTE * dOut // OUT: hash digest in _cpri__CompleteHMAC() argument 78 return _cpri__CompleteHash(&localState, dOutSize, dOut); in _cpri__CompleteHMAC()
|
D | CpriRSA_fp.h | 13 BYTE *dOut, // OUT: the decrypted data
|
D | CpriRSA.c | 1004 BYTE *dOut, // OUT: the decrypted data in _cpri__DecryptRSA() argument 1015 pAssert(cIn != NULL && dOut != NULL && dOutSize != NULL && key != NULL); in _cpri__DecryptRSA() 1030 memcpy(dOut, cIn, *dOutSize); in _cpri__DecryptRSA() 1033 return RSAES_Decode(dOutSize, dOut, cInSize, cIn); in _cpri__DecryptRSA() 1036 return OaepDecode(dOutSize, dOut, hashAlg, label, cInSize, cIn); in _cpri__DecryptRSA()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/ |
D | BcKeyStoreSpi.java | 151 DataOutputStream dOut = new DataOutputStream(bOut); in StoreEntry() local 153 dOut.writeInt(salt.length); in StoreEntry() 154 dOut.write(salt); in StoreEntry() 155 dOut.writeInt(iterationCount); in StoreEntry() 158 CipherOutputStream cOut = new CipherOutputStream(dOut, cipher); in StoreEntry() 160 dOut = new DataOutputStream(cOut); in StoreEntry() 162 encodeKey(key, dOut); in StoreEntry() 164 dOut.close(); in StoreEntry() 288 DataOutputStream dOut = new DataOutputStream(bOut); in getObject() 290 dOut.writeInt(salt.length); in getObject() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1Object.java | 45 DEROutputStream dOut = new DEROutputStream(bOut); in getEncoded() local 47 dOut.writeObject(this); in getEncoded() 54 DLOutputStream dOut = new DLOutputStream(bOut); in getEncoded() local 56 dOut.writeObject(this); in getEncoded()
|
D | DLSet.java | 133 ASN1OutputStream dOut = out.getDLSubStream(); in encode() local 143 dOut.writeObject((ASN1Encodable)obj); in encode()
|
D | DLSequence.java | 91 ASN1OutputStream dOut = out.getDLSubStream(); in encode() local 101 dOut.writeObject((ASN1Encodable)obj); in encode()
|
D | DERSequence.java | 88 ASN1OutputStream dOut = out.getDERSubStream(); in encode() local 98 dOut.writeObject((ASN1Encodable)obj); in encode()
|
D | DERSet.java | 98 ASN1OutputStream dOut = out.getDERSubStream(); in encode() local 108 dOut.writeObject((ASN1Encodable)obj); in encode()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ |
D | X509CertificateHolder.java | 280 DEROutputStream dOut = new DEROutputStream(sOut); in isSignatureValid() local 282 dOut.writeObject(tbsCert); in isSignatureValid()
|
D | X509AttributeCertificateHolder.java | 331 DEROutputStream dOut = new DEROutputStream(sOut); in isSignatureValid() local 333 dOut.writeObject(acinfo); in isSignatureValid()
|
D | X509CRLHolder.java | 289 DEROutputStream dOut = new DEROutputStream(sOut); in isSignatureValid() local 291 dOut.writeObject(tbsCRL); in isSignatureValid()
|
D | CertUtils.java | 91 DEROutputStream dOut = new DEROutputStream(sOut); in generateSig() local 93 dOut.writeObject(tbsObj); in generateSig()
|