Searched refs:crypto (Results 1 – 25 of 606) sorted by relevance
12345678910>>...25
19 src/crypto/aes/aes.c\20 src/crypto/aes/key_wrap.c\21 src/crypto/aes/mode_wrappers.c\22 src/crypto/asn1/a_bitstr.c\23 src/crypto/asn1/a_bool.c\24 src/crypto/asn1/a_d2i_fp.c\25 src/crypto/asn1/a_dup.c\26 src/crypto/asn1/a_enum.c\27 src/crypto/asn1/a_gentm.c\28 src/crypto/asn1/a_i2d_fp.c\[all …]
21 "src/crypto/aes/aes.c",22 "src/crypto/aes/key_wrap.c",23 "src/crypto/aes/mode_wrappers.c",24 "src/crypto/asn1/a_bitstr.c",25 "src/crypto/asn1/a_bool.c",26 "src/crypto/asn1/a_d2i_fp.c",27 "src/crypto/asn1/a_dup.c",28 "src/crypto/asn1/a_enum.c",29 "src/crypto/asn1/a_gentm.c",30 "src/crypto/asn1/a_i2d_fp.c",[all …]
39 MODULE_SRCDEPS += $(LOCAL_DIR)/crypto-sources.mk40 include $(LOCAL_DIR)/crypto-sources.mk47 LOCAL_SRC_FILES := $(filter-out src/crypto/bio/connect.c,$(LOCAL_SRC_FILES))48 LOCAL_SRC_FILES := $(filter-out src/crypto/bio/fd.c,$(LOCAL_SRC_FILES))49 LOCAL_SRC_FILES := $(filter-out src/crypto/bio/file.c,$(LOCAL_SRC_FILES))50 LOCAL_SRC_FILES := $(filter-out src/crypto/bio/socket.c,$(LOCAL_SRC_FILES))51 LOCAL_SRC_FILES := $(filter-out src/crypto/bio/socket_helper.c,$(LOCAL_SRC_FILES))52 LOCAL_SRC_FILES := $(filter-out src/crypto/directory_posix.c,$(LOCAL_SRC_FILES))53 LOCAL_SRC_FILES := $(filter-out src/crypto/rand/urandom.c,$(LOCAL_SRC_FILES))54 LOCAL_SRC_FILES := $(filter-out src/crypto/asn1/time_support.c,$(LOCAL_SRC_FILES))[all …]
15 std::unique_ptr<crypto::SymmetricKey> key( in TEST()16 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST()24 std::unique_ptr<crypto::SymmetricKey> key2( in TEST()25 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST()34 std::unique_ptr<crypto::SymmetricKey> key1( in TEST()35 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST()40 std::unique_ptr<crypto::SymmetricKey> key2( in TEST()41 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key1)); in TEST()51 std::unique_ptr<crypto::SymmetricKey> key1( in TEST()52 crypto::SymmetricKey::DeriveKeyFromPassword( in TEST()[all …]
24 uint8_t output3[crypto::kSHA256Length]; in TEST()26 std::unique_ptr<crypto::SecureHash> ctx( in TEST()27 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()32 for (size_t i = 0; i < crypto::kSHA256Length; i++) in TEST()40 const uint8_t kExpectedHashOfInput1[crypto::kSHA256Length] = { in TEST()44 const uint8_t kExpectedHashOfInput1And2[crypto::kSHA256Length] = { in TEST()49 uint8_t output1[crypto::kSHA256Length]; in TEST()50 uint8_t output2[crypto::kSHA256Length]; in TEST()51 uint8_t output3[crypto::kSHA256Length]; in TEST()53 std::unique_ptr<crypto::SecureHash> ctx1( in TEST()[all …]
20 std::unique_ptr<crypto::RSAPrivateKey> key_original( in TEST()21 crypto::RSAPrivateKey::Create(1024)); in TEST()26 std::unique_ptr<crypto::RSAPrivateKey> key( in TEST()27 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()30 std::unique_ptr<crypto::SignatureCreator> signer( in TEST()31 crypto::SignatureCreator::Create(key.get(), in TEST()32 crypto::SignatureCreator::SHA1)); in TEST()45 crypto::SignatureVerifier verifier; in TEST()47 crypto::SignatureVerifier::RSA_PKCS1_SHA1, &signature.front(), in TEST()57 std::unique_ptr<crypto::RSAPrivateKey> key_original( in TEST()[all …]
75 std::unique_ptr<crypto::RSAPrivateKey> keypair1( in TEST()76 crypto::RSAPrivateKey::Create(1024)); in TEST()77 std::unique_ptr<crypto::RSAPrivateKey> keypair2( in TEST()78 crypto::RSAPrivateKey::Create(2048)); in TEST()92 std::unique_ptr<crypto::RSAPrivateKey> keypair3( in TEST()93 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(privkey1)); in TEST()94 std::unique_ptr<crypto::RSAPrivateKey> keypair4( in TEST()95 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(privkey2)); in TEST()117 std::unique_ptr<crypto::RSAPrivateKey> key( in TEST()118 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(input)); in TEST()[all …]
24 uint8_t output1[crypto::kSHA256Length]; in TEST()25 crypto::SHA256HashString(input1, output1, sizeof(output1)); in TEST()26 for (size_t i = 0; i < crypto::kSHA256Length; i++) in TEST()30 crypto::SHA256HashString(input1, in TEST()49 std::string output1 = crypto::SHA256HashString(input1); in TEST()50 ASSERT_EQ(crypto::kSHA256Length, output1.size()); in TEST()51 for (size_t i = 0; i < crypto::kSHA256Length; i++) in TEST()68 uint8_t output2[crypto::kSHA256Length]; in TEST()69 crypto::SHA256HashString(input2, output2, sizeof(output2)); in TEST()70 for (size_t i = 0; i < crypto::kSHA256Length; i++) in TEST()[all …]
80 crypto::HMAC hmac(crypto::HMAC::SHA1); in TEST()149 crypto::HMAC hmac(crypto::HMAC::SHA1); in TEST()175 crypto::HMAC hmac(crypto::HMAC::SHA256); in TEST()216 crypto::HMAC hmac(crypto::HMAC::SHA1); in TEST()232 crypto::HMAC hmac2(crypto::HMAC::SHA256); in TEST()241 crypto::HMAC hmac(crypto::HMAC::SHA1); in TEST()255 crypto::HMAC hmac(crypto::HMAC::SHA1); in TEST()289 crypto::HMAC hmac(crypto::HMAC::SHA1); in TEST()
12 .arch_extension crypto14 @ CHECK-V7-NEXT: .arch_extension crypto17 .type crypto,%function18 crypto: label20 @ CHECK-V7: error: instruction requires: crypto armv823 @ CHECK-V7: error: instruction requires: crypto armv825 @ CHECK-V7: error: instruction requires: crypto armv827 @ CHECK-V7: error: instruction requires: crypto armv829 @ CHECK-V7: error: instruction requires: crypto armv832 @ CHECK-V7: error: instruction requires: crypto armv8[all …]
1 @ RUN: llvm-mc -triple armv8 -mattr=+neon,+crypto -show-encoding < %s | FileCheck %s12 @ CHECK-V7: instruction requires: crypto armv813 @ CHECK-V7: instruction requires: crypto armv814 @ CHECK-V7: instruction requires: crypto armv815 @ CHECK-V7: instruction requires: crypto armv823 @ CHECK-V7: instruction requires: crypto armv824 @ CHECK-V7: instruction requires: crypto armv825 @ CHECK-V7: instruction requires: crypto armv841 @ CHECK-V7: instruction requires: crypto armv842 @ CHECK-V7: instruction requires: crypto armv8[all …]
22 org/bouncycastle/crypto/agreement/jpake \23 org/bouncycastle/crypto/agreement/kdf \24 org/bouncycastle/crypto/agreement/srp \25 org/bouncycastle/crypto/agreement/test \26 org/bouncycastle/crypto/commitments \27 org/bouncycastle/crypto/ec/test \28 org/bouncycastle/crypto/examples \29 org/bouncycastle/crypto/kems \30 org/bouncycastle/crypto/parsers \31 org/bouncycastle/crypto/prng \[all …]
18 lib/crypto/crypto_aesctr.c \19 lib/crypto/crypto_aesctr.h \20 lib/crypto/crypto_scrypt-nosse.c \21 lib/crypto/sha256.c \22 lib/crypto/sha256.h \38 lib/crypto \43 lib/crypto/crypto_scrypt-ref.c \53 lib/crypto/crypto_scrypt-neon.c \57 lib/crypto/crypto_scrypt-ref.c \67 lib/crypto/crypto_scrypt-sse.c \[all …]
23 supportsKey(key crypto.PrivateKey) bool24 signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error)25 verifyMessage(key crypto.PublicKey, msg, sig []byte) error28 func selectSignatureAlgorithm(version uint16, key crypto.PrivateKey, config *Config, peerSigAlgs []…53 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, …69 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,…83 hash crypto.Hash87 if r.hash == crypto.MD5SHA1 {101 func (r *rsaPKCS1Signer) supportsKey(key crypto.PrivateKey) bool {106 func (r *rsaPKCS1Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, er…[all …]
26 hash crypto.Hash30 crypto.SHA256,38 crypto.SHA256,46 crypto.SHA256,56 crypto.SHA1,64 crypto.SHA1,72 crypto.SHA1,80 crypto.SHA1,
1 ; RUN: llc -march=arm64 -mattr=crypto -aarch64-neon-syntax=apple -o - %s | FileCheck %s3 declare <16 x i8> @llvm.aarch64.crypto.aese(<16 x i8> %data, <16 x i8> %key)4 declare <16 x i8> @llvm.aarch64.crypto.aesd(<16 x i8> %data, <16 x i8> %key)5 declare <16 x i8> @llvm.aarch64.crypto.aesmc(<16 x i8> %data)6 declare <16 x i8> @llvm.aarch64.crypto.aesimc(<16 x i8> %data)11 %res = call <16 x i8> @llvm.aarch64.crypto.aese(<16 x i8> %data, <16 x i8> %key)18 %res = call <16 x i8> @llvm.aarch64.crypto.aesd(<16 x i8> %data, <16 x i8> %key)25 %res = call <16 x i8> @llvm.aarch64.crypto.aesmc(<16 x i8> %data)32 %res = call <16 x i8> @llvm.aarch64.crypto.aesimc(<16 x i8> %data)36 declare <4 x i32> @llvm.aarch64.crypto.sha1c(<4 x i32> %hash_abcd, i32 %hash_e, <4 x i32> %wk)[all …]
43 from OpenSSL import crypto, SSL50 FILETYPE_PEM = crypto.FILETYPE_PEM89 return crypto.load_privatekey(filetype, key)94 return crypto.load_certificate(filetype, cert_str)99 return crypto.dump_privatekey(filetype, key)104 return crypto.dump_certificate(filetype, cert)119 key = crypto.PKey()120 key.generate_key(crypto.TYPE_RSA, 1024)122 ca_cert = crypto.X509()132 crypto.X509Extension('basicConstraints', True, 'CA:TRUE'),[all …]
1 package org.bouncycastle.crypto.generators;3 import org.bouncycastle.crypto.AsymmetricCipherKeyPair;4 import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator;5 import org.bouncycastle.crypto.KeyGenerationParameters;6 import org.bouncycastle.crypto.params.DHKeyGenerationParameters;7 import org.bouncycastle.crypto.params.DHParameters;8 import org.bouncycastle.crypto.params.DHPrivateKeyParameters;9 import org.bouncycastle.crypto.params.DHPublicKeyParameters;
1 package org.bouncycastle.crypto.generators;6 import org.bouncycastle.crypto.AsymmetricCipherKeyPair;7 import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator;8 import org.bouncycastle.crypto.KeyGenerationParameters;9 import org.bouncycastle.crypto.params.DSAKeyGenerationParameters;10 import org.bouncycastle.crypto.params.DSAParameters;11 import org.bouncycastle.crypto.params.DSAPrivateKeyParameters;12 import org.bouncycastle.crypto.params.DSAPublicKeyParameters;
1 package org.bouncycastle.crypto.generators;6 import org.bouncycastle.crypto.AsymmetricCipherKeyPair;7 import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator;8 import org.bouncycastle.crypto.KeyGenerationParameters;9 import org.bouncycastle.crypto.params.ECDomainParameters;10 import org.bouncycastle.crypto.params.ECKeyGenerationParameters;11 import org.bouncycastle.crypto.params.ECPrivateKeyParameters;12 import org.bouncycastle.crypto.params.ECPublicKeyParameters;
META-INF/MANIFEST.MF META-INF/BCKEY.SF META-INF/BCKEY ...
15 import javax.crypto.BadPaddingException;16 import javax.crypto.Cipher;17 import javax.crypto.IllegalBlockSizeException;18 import javax.crypto.NoSuchPaddingException;19 import javax.crypto.SecretKey;20 import javax.crypto.ShortBufferException;21 import javax.crypto.interfaces.PBEKey;22 import javax.crypto.spec.IvParameterSpec;24 import javax.crypto.spec.PBEKeySpec;26 import javax.crypto.spec.PBEParameterSpec;[all …]
102 struct net80211_crypto *crypto = *which; in sec80211_install() local117 crypto = zalloc ( sizeof ( *crypto ) + in sec80211_install()119 if ( ! crypto ) { in sec80211_install()124 memcpy ( crypto, tbl_crypto, sizeof ( *crypto ) ); in sec80211_install()125 crypto->priv = ( ( void * ) crypto + in sec80211_install()126 sizeof ( *crypto ) ); in sec80211_install()131 if ( ! crypto ) { in sec80211_install()136 *which = crypto; in sec80211_install()139 "length %d\n", crypt, crypto, len ); in sec80211_install()141 return crypto->init ( crypto, key, len, rsc ); in sec80211_install()[all …]
97 static int wep_init ( struct net80211_crypto *crypto, const void *key, in wep_init() argument100 struct wep_ctx *ctx = crypto->priv; in wep_init()117 static struct io_buffer * wep_encrypt ( struct net80211_crypto *crypto, in wep_encrypt() argument120 struct wep_ctx *ctx = crypto->priv; in wep_encrypt()166 static struct io_buffer * wep_decrypt ( struct net80211_crypto *crypto, in wep_decrypt() argument169 struct wep_ctx *ctx = crypto->priv; in wep_decrypt()201 DBGC ( crypto, "WEP %p CRC mismatch: expect %08x, get %08x\n", in wep_decrypt()202 crypto, icv, crc ); in wep_decrypt()235 dev->associating->crypto == NET80211_CRYPT_NONE ) in trivial_init()256 rc = sec80211_install ( &dev->crypto, NET80211_CRYPT_WEP, key, len, in trivial_init()[all …]
1 package org.bouncycastle.crypto.agreement;5 import org.bouncycastle.crypto.BasicAgreement;6 import org.bouncycastle.crypto.CipherParameters;7 import org.bouncycastle.crypto.params.AsymmetricKeyParameter;8 import org.bouncycastle.crypto.params.DHParameters;9 import org.bouncycastle.crypto.params.DHPrivateKeyParameters;10 import org.bouncycastle.crypto.params.DHPublicKeyParameters;11 import org.bouncycastle.crypto.params.ParametersWithRandom;