Home
last modified time | relevance | path

Searched refs:bio (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_crypto_encode.c44 BIO *bio = NULL; in CC_CommonBase64Encode() local
76 bio = BIO_new_fp(stream, BIO_NOCLOSE); in CC_CommonBase64Encode()
77 if (NULL == bio) { in CC_CommonBase64Encode()
82 bio = BIO_push(b64, bio); in CC_CommonBase64Encode()
83 BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL); //Ignore newlines - write everything in one line in CC_CommonBase64Encode()
84 actualWritten = BIO_write(bio, pBuff, buffLen); in CC_CommonBase64Encode()
85 BIO_flush(bio); in CC_CommonBase64Encode()
94 if (bio != NULL) { /* clears bio and b64, b64 mustn't clear explicitly*/ in CC_CommonBase64Encode()
95 BIO_free_all(bio); in CC_CommonBase64Encode()
118 BIO *bio = NULL; in CC_CommonBase64Decode() local
[all …]
Dcommon_sb_ops.h44 if (bio) \
45 BIO_free (bio); \
Dcommon_sb_ops.c49 BIO *bio = NULL; in Sign_v15() local
75 bio = BIO_new(BIO_s_mem()); in Sign_v15()
77 if (!PEM_write_bio_RSA_PUBKEY(bio, pRsaPrivKey)) in Sign_v15()
80 if (PEM_read_bio_RSA_PUBKEY(bio,&pRsaPubKey,NULL,Key_ptr) == NULL) in Sign_v15()
Dcommon_crypto_asym.c50 BIO *bio = NULL; in Sign_v15() local
99 bio = BIO_new(BIO_s_mem()); in Sign_v15()
100 if (NULL == bio) { in Sign_v15()
109 if (!PEM_write_bio_RSA_PUBKEY(bio, pRsaPrivKey)) { in Sign_v15()
114 if (PEM_read_bio_RSA_PUBKEY(bio,&pRsaPubKey,NULL,Key_ptr) == NULL) { in Sign_v15()
145 if (bio != NULL) { in Sign_v15()
146 BIO_free_all(bio); in Sign_v15()