/openssl/demos/signature/ |
H A D | EVP_EC_Signature_demo.c | 83 fprintf(stderr, "Get private key failed.\n"); in demo_sign() 92 fprintf(stderr, "EVP_MD_CTX_new failed.\n"); in demo_sign() 101 fprintf(stderr, "EVP_DigestSignInit_ex failed.\n"); in demo_sign() 118 fprintf(stderr, "EVP_DigestSignFinal failed.\n"); in demo_sign() 127 fprintf(stderr, "No memory.\n"); in demo_sign() 131 fprintf(stderr, "EVP_DigestSignFinal failed.\n"); in demo_sign() 164 fprintf(stderr, "EVP_MD_CTX_new failed.\n"); in demo_verify() 170 fprintf(stderr, "Get public key failed.\n"); in demo_verify() 219 fprintf(stderr, "demo_sign failed.\n"); in main() 223 fprintf(stderr, "demo_verify failed.\n"); in main() [all …]
|
H A D | rsa_pss_direct.c | 53 fprintf(stderr, "Failed to load private key\n"); in sign() 60 fprintf(stderr, "Failed to fetch hash algorithm\n"); in sign() 67 fprintf(stderr, "Failed to create signing context\n"); in sign() 78 fprintf(stderr, "Failed to configure padding\n"); in sign() 83 fprintf(stderr, "Failed to configure digest type\n"); in sign() 90 fprintf(stderr, "Failed to get signature length\n"); in sign() 104 fprintf(stderr, "Failed to sign\n"); in sign() 136 fprintf(stderr, "Failed to load public key\n"); in verify() 143 fprintf(stderr, "Failed to fetch hash algorithm\n"); in verify() 161 fprintf(stderr, "Failed to configure padding\n"); in verify() [all …]
|
H A D | EVP_ED_Signature_demo.c | 42 fprintf(stderr, "EVP_MD_CTX_new failed.\n"); in demo_sign() 55 fprintf(stderr, "EVP_DigestSignInit_ex failed.\n"); in demo_sign() 66 fprintf(stderr, "OPENSSL_malloc failed.\n"); in demo_sign() 71 fprintf(stderr, "EVP_DigestSign failed.\n"); in demo_sign() 101 fprintf(stderr, "EVP_MD_CTX_new failed.\n"); in demo_verify() 116 fprintf(stderr, "EVP_DigestVerify() failed.\n"); in demo_verify() 142 fprintf(stderr, "EVP_PKEY_Q_keygen() failed\n"); in create_key() 184 fprintf(stderr, "Failed to create key.\n"); in main() 190 fprintf(stderr, "demo_sign failed.\n"); in main() 195 fprintf(stderr, "demo_verify failed.\n"); in main() [all …]
|
H A D | rsa_pss_hash.c | 48 fprintf(stderr, "Failed to load private key\n"); in sign() 55 fprintf(stderr, "Failed to create MD context\n"); in sign() 66 fprintf(stderr, "Failed to initialize signing context\n"); in sign() 75 fprintf(stderr, "Failed to hash message into signing context\n"); in sign() 81 fprintf(stderr, "Failed to get signature length\n"); in sign() 88 fprintf(stderr, "Failed to allocate memory for signature\n"); in sign() 94 fprintf(stderr, "Failed to sign\n"); in sign() 126 fprintf(stderr, "Failed to load public key\n"); in verify() 133 fprintf(stderr, "Failed to create MD context\n"); in verify() 144 fprintf(stderr, "Failed to initialize signing context\n"); in verify() [all …]
|
/openssl/demos/mac/ |
H A D | poly1305.c | 99 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in main() 106 fprintf(stderr, "EVP_MAC_fetch() returned NULL\n"); in main() 113 fprintf(stderr, "EVP_MAC_CTX_new() returned NULL\n"); in main() 120 fprintf(stderr, "EVP_CIPHER_fetch() returned NULL\n"); in main() 127 fprintf(stderr, "EVP_CIPHER_CTX_new() returned NULL\n"); in main() 133 fprintf(stderr, "EVP_EncryptInit_ex() failed\n"); in main() 155 fprintf(stderr, "EVP_EncryptUpdate() failed\n"); in main() 169 fprintf(stderr, "EVP_MAC_init() failed\n"); in main() 175 fprintf(stderr, "EVP_MAC_update() failed\n"); in main() 181 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() [all …]
|
H A D | cmac-aes256.c | 79 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in main() 86 fprintf(stderr, "EVP_MAC_fetch() returned NULL\n"); in main() 93 fprintf(stderr, "EVP_MAC_CTX_new() returned NULL\n"); in main() 104 fprintf(stderr, "EVP_MAC_init() failed\n"); in main() 110 fprintf(stderr, "EVP_MAC_update() failed\n"); in main() 116 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() 121 fprintf(stderr, "malloc failed\n"); in main() 126 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() 135 fprintf(stderr, "Generated MAC has an unexpected length\n"); in main() 140 fprintf(stderr, "Generated MAC does not match expected value\n"); in main() [all …]
|
H A D | hmac-sha512.c | 90 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in main() 97 fprintf(stderr, "EVP_MAC_fetch() returned NULL\n"); in main() 104 fprintf(stderr, "EVP_MAC_CTX_new() returned NULL\n"); in main() 115 fprintf(stderr, "EVP_MAC_init() failed\n"); in main() 121 fprintf(stderr, "EVP_MAC_update() failed\n"); in main() 127 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() 132 fprintf(stderr, "malloc failed\n"); in main() 137 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() 146 fprintf(stderr, "Generated MAC has an unexpected length\n"); in main() 151 fprintf(stderr, "Generated MAC does not match expected value\n"); in main() [all …]
|
H A D | gmac.c | 70 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in main() 77 fprintf(stderr, "EVP_MAC_fetch() returned NULL\n"); in main() 84 fprintf(stderr, "EVP_MAC_CTX_new() returned NULL\n"); in main() 107 fprintf(stderr, "EVP_MAC_init() failed\n"); in main() 113 fprintf(stderr, "EVP_MAC_update() failed\n"); in main() 119 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() 128 fprintf(stderr, "Generated MAC has an unexpected length\n"); in main() 133 fprintf(stderr, "Generated MAC does not match expected value\n"); in main() 143 ERR_print_errors_fp(stderr); in main()
|
H A D | siphash.c | 58 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in main() 65 fprintf(stderr, "EVP_MAC_fetch() returned NULL\n"); in main() 72 fprintf(stderr, "EVP_MAC_CTX_new() returned NULL\n"); in main() 91 fprintf(stderr, "EVP_MAC_init() failed\n"); in main() 97 fprintf(stderr, "EVP_MAC_update() failed\n"); in main() 103 fprintf(stderr, "EVP_MAC_final() failed\n"); in main() 112 fprintf(stderr, "Generated MAC has an unexpected length\n"); in main() 117 fprintf(stderr, "Generated MAC does not match expected value\n"); in main() 127 ERR_print_errors_fp(stderr); in main()
|
/openssl/demos/digest/ |
H A D | EVP_MD_stdin.c | 48 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in demonstrate_digest() 61 ERR_print_errors_fp(stderr); in demonstrate_digest() 74 fprintf(stderr, "No memory.\n"); in demonstrate_digest() 83 fprintf(stderr, "EVP_MD_CTX_new failed.\n"); in demonstrate_digest() 84 ERR_print_errors_fp(stderr); in demonstrate_digest() 92 fprintf(stderr, "EVP_DigestInit failed.\n"); in demonstrate_digest() 93 ERR_print_errors_fp(stderr); in demonstrate_digest() 98 fprintf(stderr, "EVP_DigestUpdate() failed.\n"); in demonstrate_digest() 103 fprintf(stderr, "EVP_DigestFinal() failed.\n"); in demonstrate_digest() 114 ERR_print_errors_fp(stderr); in demonstrate_digest() [all …]
|
H A D | EVP_MD_demo.c | 92 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in demonstrate_digest() 104 fprintf(stderr, "EVP_MD_fetch could not find SHA3-512."); in demonstrate_digest() 110 fprintf(stderr, "EVP_MD_get_size returned invalid size.\n"); in demonstrate_digest() 116 fprintf(stderr, "No memory.\n"); in demonstrate_digest() 125 fprintf(stderr, "EVP_MD_CTX_new failed.\n"); in demonstrate_digest() 133 fprintf(stderr, "EVP_DigestInit failed.\n"); in demonstrate_digest() 138 fprintf(stderr, "EVP_DigestUpdate(hamlet_1) failed.\n"); in demonstrate_digest() 142 fprintf(stderr, "EVP_DigestUpdate(hamlet_2) failed.\n"); in demonstrate_digest() 146 fprintf(stderr, "EVP_DigestFinal() failed.\n"); in demonstrate_digest() 169 ERR_print_errors_fp(stderr); in demonstrate_digest()
|
H A D | BIO_f_md.c | 51 fprintf(stderr, "BIO_new_fd() for stdin returned NULL\n"); in main() 56 fprintf(stderr, "OSSL_LIB_CTX_new() returned NULL\n"); in main() 67 fprintf(stderr, "EVP_MD_fetch did not find SHA3-512.\n"); in main() 72 fprintf(stderr, "EVP_MD_get_size returned invalid size.\n"); in main() 78 … fprintf(stderr, "Can't allocate %lu bytes for the digest value.\n", (unsigned long)digest_size); in main() 84 fprintf(stderr, "BIO_new(BIO_f_md()) returned NULL\n"); in main() 89 fprintf(stderr, "BIO_set_md failed.\n"); in main() 106 fprintf(stderr, "BIO_gets(bio_digest) failed\n"); in main() 117 ERR_print_errors_fp(stderr); in main()
|
H A D | EVP_MD_xof.c | 58 fprintf(stderr, "Specify a non-negative digest length\n"); in main() 71 fprintf(stderr, "Failed to retrieve SHAKE256 algorithm\n"); in main() 78 fprintf(stderr, "Failed to create digest context\n"); in main() 84 fprintf(stderr, "Failed to initialize digest\n"); in main() 93 fprintf(stderr, "Failed to hash input message\n"); in main() 100 fprintf(stderr, "Failed to allocate memory for digest\n"); in main() 106 fprintf(stderr, "Failed to finalize hash\n"); in main() 120 fprintf(stderr, "Output does not match expected result\n"); in main()
|
/openssl/demos/pkey/ |
H A D | EVP_PKEY_RSA_keygen.c | 50 fprintf(stderr, "EVP_PKEY_keygen_init() failed\n"); in generate_rsa_key_long() 88 fprintf(stderr, "EVP_PKEY_generate() failed\n"); in generate_rsa_key_long() 116 fprintf(stderr, "EVP_PKEY_Q_keygen() failed\n"); in generate_rsa_key_short() 138 fprintf(stderr, "Failed to retrieve n\n"); in dump_key() 147 fprintf(stderr, "Failed to retrieve e\n"); in dump_key() 156 fprintf(stderr, "Failed to retrieve d\n"); in dump_key() 165 fprintf(stderr, "Failed to retrieve p\n"); in dump_key() 178 fprintf(stderr, "Failed to retrieve q\n"); in dump_key() 186 fprintf(stderr, "Failed to retrieve bits\n"); in dump_key() 258 fprintf(stderr, "Invalid RSA key size\n"); in main() [all …]
|
H A D | EVP_PKEY_DSA_paramvalidate.c | 69 fprintf(stderr, "EVP_PKEY_todata() failed\n"); in create_merged_key() 74 fprintf(stderr, "OSSL_PARAM_merge() failed\n"); in create_merged_key() 80 fprintf(stderr, "EVP_PKEY_CTX_new_from_name() failed\n"); in create_merged_key() 86 fprintf(stderr, "EVP_PKEY_fromdata() failed\n"); in create_merged_key() 91 fprintf(stderr, "EVP_PKEY_CTX_new_from_pkey() failed\n"); in create_merged_key() 125 fprintf(stderr, "BIO_new_mem_buf() failed\n"); in main() 132 fprintf(stderr, "Failed to load dsa params\n"); in main() 138 fprintf(stderr, "EVP_PKEY_CTX_new_from_pkey() failed\n"); in main() 148 fprintf(stderr, "Simple EVP_PKEY_param_check() failed\n"); in main() 171 fprintf(stderr, "EVP_PKEY_param_check() should fail\n"); in main() [all …]
|
/openssl/test/ |
H A D | shlibloadtest.c | 86 fprintf(stderr, "Failed to load libcrypto\n"); in test_lib() 95 fprintf(stderr, "Failed to load libssl\n"); in test_lib() 101 fprintf(stderr, "Failed to load libcrypto\n"); in test_lib() 135 fprintf(stderr, "Failed to create SSL_CTX\n"); in test_lib() 162 fprintf(stderr, "Invalid library version number\n"); in test_lib() 208 fprintf(stderr, "Failed to close libcrypto\n"); in test_lib() 215 fprintf(stderr, "Failed to close libssl\n"); in test_lib() 232 fprintf(stderr, "atexit() handler did not run\n"); in test_lib() 259 fprintf(stderr, "Incorrect number of arguments\n"); in main() 276 fprintf(stderr, "Unrecognised argument\n"); in main() [all …]
|
H A D | ssl_old_test.c | 645 fprintf(stderr, in sv_usage() 648 fprintf(stderr, in sv_usage() 650 fprintf(stderr, in sv_usage() 652 fprintf(stderr, in sv_usage() 654 fprintf(stderr, in sv_usage() 688 fprintf(stderr, in sv_usage() 691 fprintf(stderr, in sv_usage() 699 fprintf(stderr, in sv_usage() 709 fprintf(stderr, in sv_usage() 711 fprintf(stderr, in sv_usage() [all …]
|
/openssl/demos/guide/ |
H A D | quic-hq-interop.c | 309 fprintf(stderr, "Stream reset occurred\n"); in handle_io_failure() 317 fprintf(stderr, "Connection closed\n"); in handle_io_failure() 322 fprintf(stderr, "Unknown stream failure\n"); in handle_io_failure() 330 fprintf(stderr, "Verify error: %s\n", in handle_io_failure() 699 fprintf(stderr, "Failed to create the SSL_CTX\n"); in setup_connection() 753 fprintf(stderr, "Failed to crete the BIO\n"); in setup_connection() 804 fprintf(stderr, "Failed to connect to server\n"); in setup_connection() 896 fprintf(stderr, "Realloc failure\n"); in main() 930 fprintf(stderr, "Failed to poll\n"); in main() 1005 fprintf(stderr, "Shutting down\n"); in main() [all …]
|
H A D | tls-server-block.c | 39 fprintf(stderr, "%s: ", progname); in vwarnx() 40 vfprintf(stderr, fmt, ap); in vwarnx() 41 putc('\n', stderr); in vwarnx() 85 ERR_print_errors_fp(stderr); in main() 95 ERR_print_errors_fp(stderr); in main() 155 ERR_print_errors_fp(stderr); in main() 167 ERR_print_errors_fp(stderr); in main() 216 ERR_print_errors_fp(stderr); in main() 223 ERR_print_errors_fp(stderr); in main() 251 ERR_print_errors_fp(stderr); in main() [all …]
|
/openssl/demos/encrypt/ |
H A D | rsa_encrypt.c | 111 fprintf(stderr, "Get public key failed.\n"); in do_encrypt() 127 fprintf(stderr, "EVP_PKEY_encrypt() failed.\n"); in do_encrypt() 132 fprintf(stderr, "Malloc failed.\n"); in do_encrypt() 136 fprintf(stderr, "EVP_PKEY_encrypt() failed.\n"); in do_encrypt() 168 fprintf(stderr, "Get private key failed.\n"); in do_decrypt() 186 fprintf(stderr, "EVP_PKEY_decrypt() failed.\n"); in do_decrypt() 191 fprintf(stderr, "Malloc failed.\n"); in do_decrypt() 195 fprintf(stderr, "EVP_PKEY_decrypt() failed.\n"); in do_decrypt() 222 fprintf(stderr, "encryption failed.\n"); in main() 227 fprintf(stderr, "decryption failed.\n"); in main() [all …]
|
/openssl/demos/bio/ |
H A D | client-conf.c | 34 fprintf(stderr, "Error processing config file\n"); in main() 36 fprintf(stderr, "Error on line %ld\n", errline); in main() 43 fprintf(stderr, "Error retrieving default section\n"); in main() 58 fprintf(stderr, "Error processing %s = %s\n", in main() 60 ERR_print_errors_fp(stderr); in main() 66 fprintf(stderr, "Unknown configuration option %s\n", cnf->name); in main() 72 fprintf(stderr, "Finish error\n"); in main() 73 ERR_print_errors_fp(stderr); in main() 88 fprintf(stderr, "Can't locate SSL pointer\n"); in main() 98 fprintf(stderr, "Error connecting to server\n"); in main() [all …]
|
H A D | client-arg.c | 36 fprintf(stderr, "Missing argument for %s\n", *args); in main() 40 fprintf(stderr, "Error in command %s\n", *args); in main() 41 ERR_print_errors_fp(stderr); in main() 51 fprintf(stderr, "Missing -connect argument\n"); in main() 58 fprintf(stderr, "Unknown argument %s\n", *args); in main() 64 fprintf(stderr, "Finish error\n"); in main() 65 ERR_print_errors_fp(stderr); in main() 80 fprintf(stderr, "Can't locate SSL pointer\n"); in main() 90 fprintf(stderr, "Error connecting to server\n"); in main() 91 ERR_print_errors_fp(stderr); in main()
|
H A D | server-conf.c | 44 fprintf(stderr, "Error processing config file\n"); in main() 46 fprintf(stderr, "Error on line %ld\n", errline); in main() 53 fprintf(stderr, "Error retrieving default section\n"); in main() 69 fprintf(stderr, "Error processing %s = %s\n", in main() 71 ERR_print_errors_fp(stderr); in main() 77 fprintf(stderr, "Unknown configuration option %s\n", cnf->name); in main() 83 fprintf(stderr, "Finish error\n"); in main() 84 ERR_print_errors_fp(stderr); in main() 136 ERR_print_errors_fp(stderr); in main()
|
/openssl/demos/keyexch/ |
H A D | x25519.c | 81 fprintf(stderr, "Could not load or generate private key\n"); in keyexch_x25519_before() 97 fprintf(stderr, "EVP_PKEY_get_octet_string_param() " in keyexch_x25519_before() 141 fprintf(stderr, "EVP_PKEY_CTX_new_from_pkey() failed\n"); in keyexch_x25519_after() 147 fprintf(stderr, "EVP_PKEY_derive_init() failed\n"); in keyexch_x25519_after() 153 fprintf(stderr, "EVP_PKEY_derive_set_peer() failed\n"); in keyexch_x25519_after() 159 fprintf(stderr, "EVP_PKEY_derive() failed\n"); in keyexch_x25519_after() 169 fprintf(stderr, "Secret is always 32 bytes for X25519\n"); in keyexch_x25519_after() 176 fprintf(stderr, "Could not allocate memory for secret\n"); in keyexch_x25519_after() 183 fprintf(stderr, "EVP_PKEY_derive() failed\n"); in keyexch_x25519_after() 242 fprintf(stderr, "Negotiated secrets do not match\n"); in keyexch_x25519() [all …]
|
/openssl/demos/encode/ |
H A D | ec_encode.c | 50 fprintf(stderr, "OSSL_DECODER_CTX_new_for_pkey() failed\n"); in load_key() 67 fprintf(stderr, "OSSL_DECODER_CTX_set_passphrase() failed\n"); in load_key() 74 fprintf(stderr, "OSSL_DECODER_from_fp() failed\n"); in load_key() 127 fprintf(stderr, "OSSL_ENCODER_CTX_new_for_pkey() failed\n"); in store_key() 149 fprintf(stderr, "OSSL_ENCODER_CTX_set_cipher() failed\n"); in store_key() 157 fprintf(stderr, "OSSL_ENCODER_CTX_set_passphrase() failed\n"); in store_key() 164 fprintf(stderr, "OSSL_ENCODER_to_fp() failed\n"); in store_key() 191 fprintf(stderr, "Failed to decode key\n"); in main() 196 fprintf(stderr, "Failed to encode key\n"); in main()
|