/openssl/crypto/rsa/ |
H A D | rsa_none.c | 20 int RSA_padding_add_none(unsigned char *to, int tlen, in RSA_padding_add_none() argument 23 if (flen > tlen) { in RSA_padding_add_none() 28 if (flen < tlen) { in RSA_padding_add_none() 37 int RSA_padding_check_none(unsigned char *to, int tlen, in RSA_padding_check_none() argument 41 if (flen > tlen) { in RSA_padding_check_none() 46 memset(to, 0, tlen - flen); in RSA_padding_check_none() 47 memcpy(to + tlen - flen, from, flen); in RSA_padding_check_none() 48 return tlen; in RSA_padding_check_none()
|
H A D | rsa_pk1.c | 38 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1() 49 j = tlen - 3 - flen; in RSA_padding_add_PKCS1_type_1() 116 if (j > tlen) { in RSA_padding_check_PKCS1_type_1() 132 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in ossl_rsa_padding_add_PKCS1_type_2_ex() 146 j = tlen - 3 - flen; in ossl_rsa_padding_add_PKCS1_type_2_ex() 181 if (tlen <= 0 || flen <= 0) in RSA_padding_check_PKCS1_type_2() 240 good &= constant_time_ge(tlen, mlen); in RSA_padding_check_PKCS1_type_2() 252 tlen = constant_time_select_int(constant_time_lt(num - RSA_PKCS1_PADDING_SIZE, tlen), in RSA_padding_check_PKCS1_type_2() 259 for (i = 0; i < tlen; i++) { in RSA_padding_check_PKCS1_type_2() 295 if (tlen * 8 != bitlen) { in ossl_rsa_prf() [all …]
|
H A D | rsa_oaep.c | 39 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_OAEP() argument 55 unsigned char *to, int tlen, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument 62 int i, emlen = tlen - 1; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 151 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument 160 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP() argument 168 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, in RSA_padding_check_PKCS1_OAEP_mgf1() argument 211 if (tlen <= 0 || flen <= 0 || mdlen <= 0) in RSA_padding_check_PKCS1_OAEP_mgf1() 299 good &= constant_time_ge(tlen, mlen); in RSA_padding_check_PKCS1_OAEP_mgf1() 311 tlen = constant_time_select_int(constant_time_lt(dblen - mdlen - 1, tlen), in RSA_padding_check_PKCS1_OAEP_mgf1() 312 dblen - mdlen - 1, tlen); in RSA_padding_check_PKCS1_OAEP_mgf1() [all …]
|
H A D | rsa_x931.c | 43 int RSA_padding_add_X931(unsigned char *to, int tlen, in RSA_padding_add_X931() argument 53 j = tlen - flen - 2; in RSA_padding_add_X931() 79 int RSA_padding_check_X931(unsigned char *to, int tlen, in RSA_padding_check_X931() argument
|
H A D | rsa_local.h | 197 int tlen, const unsigned char *from,
|
/openssl/doc/man3/ |
H A D | RSA_padding_add_PKCS1_type_1.pod | 20 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, 23 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, 26 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, 29 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, 32 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, 36 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, 40 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, 45 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, 50 int RSA_padding_add_none(unsigned char *to, int tlen, 53 int RSA_padding_check_none(unsigned char *to, int tlen, [all …]
|
/openssl/test/ |
H A D | mdc2test.c | 52 size_t tlen = strlen(text), i = 0; in test_mdc2() local 65 ebcdic2ascii(text, text, tlen); in test_mdc2() 71 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2() 78 || !TEST_true(EVP_DigestUpdate(c, (unsigned char *)text, tlen)) in test_mdc2()
|
/openssl/include/openssl/ |
H A D | rsa.h | 387 int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen, 390 int RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen, 394 int RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen, 397 int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen, 404 int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen, 408 int RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen, 412 int RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, 417 int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen, 422 OSSL_DEPRECATEDIN_3_0 int RSA_padding_add_none(unsigned char *to, int tlen, 424 OSSL_DEPRECATEDIN_3_0 int RSA_padding_check_none(unsigned char *to, int tlen, [all …]
|
/openssl/include/crypto/ |
H A D | rsa.h | 93 unsigned char *to, int tlen, 97 size_t tlen, 102 unsigned char *to, int tlen,
|
/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_ccm_hw.c | 26 int ossl_ccm_generic_gettag(PROV_CCM_CTX *ctx, unsigned char *tag, size_t tlen) in ossl_ccm_generic_gettag() argument 28 return CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, tlen) > 0; in ossl_ccm_generic_gettag()
|
H A D | cipher_aes_ccm_hw_s390x.inc | 210 unsigned char *tag, size_t tlen) 214 if (tlen > ctx->m) 216 memcpy(tag, sctx->ccm.s390x.kmac.icv.b, tlen);
|
H A D | cipher_aes_ocb.c | 65 unsigned char *tag, size_t tlen) in aes_generic_ocb_gettag() argument 67 return CRYPTO_ocb128_tag(&ctx->ocb, tag, tlen) > 0; in aes_generic_ocb_gettag()
|
/openssl/providers/implementations/include/prov/ |
H A D | ciphercommon_ccm.h | 98 int ossl_ccm_generic_gettag(PROV_CCM_CTX *ctx, unsigned char *tag, size_t tlen);
|
/openssl/apps/lib/ |
H A D | apps.c | 2714 size_t i, flen = strlen(from) + 1, tlen = strlen(to) + 1; in WIN32_rename() local 2716 tfrom = malloc(sizeof(*tfrom) * (flen + tlen)); in WIN32_rename() 2726 if (!MultiByteToWideChar(CP_ACP, 0, to, tlen, (WCHAR *)tto, tlen)) in WIN32_rename() 2728 for (i = 0; i < tlen; i++) in WIN32_rename()
|