| /netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
| H A D | rsa.c | 64 lowlevel_rsa_private_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, NETPGPV… in lowlevel_rsa_private_encrypt() argument 92 signc = PGPV_BN_bn2bin(signedbn, &encbuf[nbytes - signedbytes]); in lowlevel_rsa_private_encrypt() 93 memset(encbuf, 0x0, nbytes - signc); in lowlevel_rsa_private_encrypt() 103 lowlevel_rsa_public_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, NETPGPV_… in lowlevel_rsa_public_encrypt() argument 132 i = PGPV_BN_bn2bin(encbn, &encbuf[nbytes - encc]); in lowlevel_rsa_public_encrypt() 133 (void) memset(encbuf, 0x0, nbytes - i); in lowlevel_rsa_public_encrypt() 146 lowlevel_rsa_private_decrypt(int enclen, const unsigned char *encbuf, unsigned char *to, NETPGPV_RS… in lowlevel_rsa_private_decrypt() argument 172 PGPV_BN_bin2bn(encbuf, enclen, encbn); in lowlevel_rsa_private_decrypt() 188 lowlevel_rsa_public_decrypt(const uint8_t *encbuf, int enclen, uint8_t *dec, const netpgpv_rsa_pubk… in lowlevel_rsa_public_decrypt() argument 224 if (PGPV_BN_bin2bn(encbuf, enclen, encbn) == NULL) { in lowlevel_rsa_public_decrypt() [all …]
|
| H A D | libverify.c | 1891 lowlevel_rsa_public_check(const uint8_t *encbuf, int enclen, uint8_t *dec, const netpgpv_rsa_pubkey… in lowlevel_rsa_public_check() argument 1928 if (PGPV_BN_bin2bn(encbuf, enclen, encbn) == NULL) { in lowlevel_rsa_public_check()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/librsa/ |
| H A D | rsa.c | 64 lowlevel_rsa_private_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, RSA *rs… in lowlevel_rsa_private_encrypt() argument 92 signc = BN_bn2bin(signedbn, &encbuf[nbytes - signedbytes]); in lowlevel_rsa_private_encrypt() 93 memset(encbuf, 0x0, nbytes - signc); in lowlevel_rsa_private_encrypt() 103 lowlevel_rsa_public_encrypt(int plainc, const unsigned char *plain, unsigned char *encbuf, RSA *rsa) in lowlevel_rsa_public_encrypt() argument 132 i = BN_bn2bin(encbn, &encbuf[nbytes - encc]); in lowlevel_rsa_public_encrypt() 133 (void) memset(encbuf, 0x0, nbytes - i); in lowlevel_rsa_public_encrypt() 146 lowlevel_rsa_private_decrypt(int enclen, const unsigned char *encbuf, unsigned char *to, RSA *rsa) in lowlevel_rsa_private_decrypt() argument 172 BN_bin2bn(encbuf, enclen, encbn); in lowlevel_rsa_private_decrypt() 188 lowlevel_rsa_public_decrypt(const uint8_t *encbuf, int enclen, uint8_t *dec, const rsa_pubkey_t *rs… in lowlevel_rsa_public_decrypt() argument 224 if (BN_bin2bn(encbuf, enclen, encbn) == NULL) { in lowlevel_rsa_public_decrypt() [all …]
|
| /netbsd-src/usr.bin/audio/ctl/ |
| H A D | ctl.c | 65 static char encbuf[1000]; variable 93 { "encodings", encbuf, STRING, READONLY }, 300 if (pos >= (int)sizeof(encbuf)-1) in getinfo() 303 encbuf[pos++] = ','; in getinfo() 304 if (pos >= (int)sizeof(encbuf)-1) in getinfo() 306 pos += snprintf(encbuf+pos, sizeof(encbuf)-pos, "%s:%d%s", in getinfo()
|
| /netbsd-src/usr.bin/bdes/ |
| H A D | bdes.c | 669 Desbuf encbuf; /* encryption buffer */ in cbcauth() local 678 CHAR(encbuf, n) = CHAR(msgbuf, n) ^ CHAR(ivec, n); in cbcauth() 679 DES_XFORM(UBUFFER(encbuf)); in cbcauth() 680 MEMCPY(BUFFER(ivec), BUFFER(encbuf), 8); in cbcauth() 688 CHAR(encbuf, n) = CHAR(msgbuf, n) ^ CHAR(ivec, n); in cbcauth() 689 DES_XFORM(UBUFFER(encbuf)); in cbcauth() 697 (void)putchar(CHAR(encbuf, n)); in cbcauth() 701 CHAR(msgbuf, 0) |= (CHAR(encbuf, n)&bits[j]); in cbcauth()
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/ |
| H A D | writer.c | 939 uint8_t encbuf[BUFSZ]; in encrypt_writer() local 954 pgp_encrypt->crypt->cfb_encrypt(pgp_encrypt->crypt, encbuf, in encrypt_writer() 959 hexdump(stderr, "encrypted", encbuf, 16); in encrypt_writer() 961 if (!stacked_write(writer, encbuf, size, errors)) { in encrypt_writer()
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblmdb/ |
| H A D | mdb.c | 4725 mdb_hash_enc(MDB_val *val, char *encbuf) in mdb_hash_enc() argument 4729 mdb_pack85(h, encbuf); in mdb_hash_enc() 4730 mdb_pack85(h>>32, encbuf+5); in mdb_hash_enc() 4731 encbuf[10] = '\0'; in mdb_hash_enc() 4827 char encbuf[11]; in mdb_env_setup_locks() local 4844 mdb_hash_enc(&val, encbuf); in mdb_env_setup_locks() 4845 sprintf(env->me_txns->mti_rmname, "Global\\MDBr%s", encbuf); in mdb_env_setup_locks() 4846 sprintf(env->me_txns->mti_wmname, "Global\\MDBw%s", encbuf); in mdb_env_setup_locks() 4858 char encbuf[11]; in mdb_env_setup_locks() 4868 mdb_hash_enc(&val, encbuf); in mdb_env_setup_locks() [all …]
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/libverify/ |
| H A D | libverify.c | 1432 lowlevel_rsa_public_check(const uint8_t *encbuf, int enclen, uint8_t *dec, const rsa_pubkey_t *rsa) in lowlevel_rsa_public_check() argument 1468 if (BN_bin2bn(encbuf, enclen, encbn) == NULL) { in lowlevel_rsa_public_check()
|