Home
last modified time | relevance | path

Searched refs:cipher_ (Results 1 – 6 of 6) sorted by relevance

/AliOS-Things-master/components/oss/src/encryption/
A DCryptoModule.cc72 …CryptoStreamBuf cryptoStream(*putRequest.Body(), cipher_, material.ContentKey(), material.ContentI… in PutObjectSecurely()
85 if (material.CipherName() != cipher_->Name()) { in GetObjectSecurely()
88 "expect " << cipher_->Name() << ", " in GetObjectSecurely()
100 int64_t blkSize = static_cast<int64_t>(cipher_->BlockSize()); in GetObjectSecurely()
106 iv = cipher_->IncCTRCounter(iv, static_cast<uint64_t>(blockOfNum)); in GetObjectSecurely()
189 auto blockNum = fileOffset / static_cast<int64_t>(cipher_->BlockSize()); in UploadPartSecurely()
190 …auto iv = cipher_->IncCTRCounter(ctx.ContentMaterial().ContentIV(), static_cast<uint64_t>(blockNum… in UploadPartSecurely()
191 CryptoStreamBuf cryptoStream(*uRequest.Body(), cipher_, ctx.ContentMaterial().ContentKey(), iv); in UploadPartSecurely()
292 cipher_ = SymmetricCipher::CreateAES256_CTRImpl(); in initEncryptionCipher()
293 content.setCipherName(cipher_->Name()); in initEncryptionCipher()
[all …]
A DCryptoStreamBuf.cc29 cipher_(cipher), in CryptoStreamBuf()
48 …auto ret = cipher_->Decrypt(block, static_cast<int>(decBufferCnt_), decBuffer_, static_cast<int>(d… in ~CryptoStreamBuf()
70 cipher_->EncryptInit(key_, iv); in xsgetn()
76 …auto ret = cipher_->Encrypt(encBuffer_, static_cast<int>(readCnt), block, static_cast<int>(readCnt… in xsgetn()
100 …auto ret = cipher_->Encrypt(encBuffer_, static_cast<int>(readCnt), block, static_cast<int>(readCnt… in xsgetn()
109 …auto ret = cipher_->Encrypt(reinterpret_cast<unsigned char *>(_Ptr), static_cast<int>(readCnt), bl… in xsgetn()
171 cipher_->DecryptInit(key_, iv_); in xsputn()
189 …auto ret = cipher_->Decrypt(block, static_cast<int>(BLK_SIZE), decBuffer_, static_cast<int>(BLK_SI… in xsputn()
207 …auto ret = cipher_->Decrypt(block, static_cast<int>(BLK_SIZE), reinterpret_cast<const unsigned cha… in xsputn()
A DCipherOpenssl.cc31 cipher_(cipher) in SymmetricCipherOpenssl()
33 blockSize_ = EVP_CIPHER_block_size(cipher_); in SymmetricCipherOpenssl()
57 EVP_EncryptInit_ex(encryptCtx_, cipher_, nullptr, key.data(), iv.data()); in EncryptInit()
107 EVP_DecryptInit_ex(decryptCtx_, cipher_, nullptr, key.data(), iv.data()); in DecryptInit()
A DCipherOpenssl.h44 const EVP_CIPHER* cipher_; variable
A DCryptoStreamBuf.h43 std::shared_ptr<SymmetricCipher> cipher_; variable
A DCryptoModule.h60 std::shared_ptr<SymmetricCipher> cipher_; variable

Completed in 7 milliseconds