Home
last modified time | relevance | path

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

/CTR-SDK-4.2.7-SampleDemos/crypto/Rsa/
Dmain.cpp40 unsigned char buf1[MAX_BUF_SIZE]; /* Output buffer in which to put the */ in encrypt_dectypt_test() local
52 result = swRsaPub.Encrypt(&encrypt_size, buf1, len, string, std::strlen(string)); in encrypt_dectypt_test()
67 result = swRsaPriv.Decrypt(&decrypt_size, buf2, len, buf1, encrypt_size); in encrypt_dectypt_test()
92 unsigned char buf1[MAX_BUF_SIZE]; /* Output buffer in which to put the */ in sign_verify_test() local
101 result = swRsaPriv.Sign(&signature_size, buf1, len, string, std::strlen(string)); in sign_verify_test()
111 result = swRsaPub.Verify(string, std::strlen(string), buf1, signature_size); in sign_verify_test()
129 unsigned char buf1[MAX_BUF_SIZE]; /* Output buffer in which to put the */ in sign_verify_test__pre_digest() local
148 result = swRsaPriv.SignSha256(&signature_size, buf1, len, dgst); in sign_verify_test__pre_digest()
162 result = swRsaPub.VerifySha256(dgst, buf1, signature_size); in sign_verify_test__pre_digest()