HomeSort by relevance Sort by last modified time
    Searched refs:IV (Results 1 - 25 of 102) sorted by null

1 2 3 4 5

  /external/chromium_org/third_party/tlslite/tlslite/utils/
pycrypto_aes.py 12 def new(key, mode, IV):
13 return PyCrypto_AES(key, mode, IV)
17 def __init__(self, key, mode, IV):
18 AES.__init__(self, key, mode, IV, "pycrypto")
20 IV = bytes(IV)
21 self.context = Crypto.Cipher.AES.new(key, mode, IV)
pycrypto_tripledes.py 12 def new(key, mode, IV):
13 return PyCrypto_TripleDES(key, mode, IV)
17 def __init__(self, key, mode, IV):
18 TripleDES.__init__(self, key, mode, IV, "pycrypto")
20 IV = bytes(IV)
21 self.context = Crypto.Cipher.DES3.new(key, mode, IV)
openssl_aes.py 11 def new(key, mode, IV):
12 return OpenSSL_AES(key, mode, IV)
16 def __init__(self, key, mode, IV):
17 AES.__init__(self, key, mode, IV, "openssl")
19 self.IV = IV
29 m2.cipher_init(context, cipherType, self.key, self.IV, encrypt)
37 self.IV = ciphertext[-self.block_size:]
51 self.IV = ciphertext[-self.block_size:]
openssl_tripledes.py 11 def new(key, mode, IV):
12 return OpenSSL_TripleDES(key, mode, IV)
16 def __init__(self, key, mode, IV):
17 TripleDES.__init__(self, key, mode, IV, "openssl")
19 self.IV = IV
24 m2.cipher_init(context, cipherType, self.key, self.IV, encrypt)
32 self.IV = ciphertext[-self.block_size:]
46 self.IV = ciphertext[-self.block_size:]
python_aes.py 11 def new(key, mode, IV):
12 return Python_AES(key, mode, IV)
15 def __init__(self, key, mode, IV):
16 AES.__init__(self, key, mode, IV, "python")
18 self.IV = IV
24 chainBytes = self.IV[:]
44 self.IV = chainBytes[:]
51 chainBytes = self.IV[:]
68 self.IV = chainBytes[:
    [all...]
cipherfactory.py 31 def createAES(key, IV, implList=None):
37 @type IV: str
38 @param IV: A 16 byte string
48 return openssl_aes.new(key, 2, IV)
50 return pycrypto_aes.new(key, 2, IV)
52 return python_aes.new(key, 2, IV)
55 def createRC4(key, IV, implList=None):
61 @type IV: object
62 @param IV: Ignored, whatever it is.
70 if len(IV) != 0
    [all...]
tripledes.py 7 def __init__(self, key, mode, IV, implementation):
12 if len(IV) != 8:
aes.py 7 def __init__(self, key, mode, IV, implementation):
12 if len(IV) != 16:
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
OFBBlockCipher.java 14 private byte[] IV;
35 this.IV = new byte[cipher.getBlockSize()];
51 * Initialise the cipher and, possibly, the initialisation vector (IV).
52 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
53 * An IV which is too short is handled in FIPS compliant fashion.
69 byte[] iv = ivParam.getIV();
71 if (iv.length < IV.length)
73 // prepend the supplied IV with zeros (per FIPS PUB 81
    [all...]
SICBlockCipher.java 18 private byte[] IV;
32 this.IV = new byte[blockSize];
57 byte[] iv = ivParam.getIV();
58 System.arraycopy(iv, 0, IV, 0, IV.length);
62 // if null it's an IV changed only.
110 System.arraycopy(IV, 0, counter, 0, counter.length);
CFBBlockCipher.java 15 private byte[] IV;
37 this.IV = new byte[cipher.getBlockSize()];
53 * Initialise the cipher and, possibly, the initialisation vector (IV).
54 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
55 * An IV which is too short is handled in FIPS compliant fashion.
73 byte[] iv = ivParam.getIV();
75 if (iv.length < IV.length)
77 // prepend the supplied IV with zeros (per FIPS PUB 81
    [all...]
CBCBlockCipher.java 15 private byte[] IV;
34 this.IV = new byte[blockSize];
50 * Initialise the cipher and, possibly, the initialisation vector (IV).
51 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
71 byte[] iv = ivParam.getIV();
73 if (iv.length != blockSize)
78 System.arraycopy(iv, 0, IV, 0, iv.length)
    [all...]
  /external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/Perf-Trace-Util/
Context.c 60 XSprePUSH; PUSHi((IV)RETVAL);
83 XSprePUSH; PUSHi((IV)RETVAL);
106 XSprePUSH; PUSHi((IV)RETVAL);
  /libcore/benchmarks/src/benchmarks/regression/
CipherInputStreamBenchmark.java 47 private static final byte[] IV = new byte[IV_SIZE];
54 IV[i] = (byte) i;
71 spec = new IvParameterSpec(IV);
CipherBenchmark.java 44 private static final byte[] IV = new byte[IV_SIZE];
51 IV[i] = (byte) i;
127 spec = new IvParameterSpec(IV);
  /external/ipsec-tools/src/racoon/missing/crypto/rijndael/
rijndael-api-fst.c 79 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) {
85 if (IV != NULL) {
86 bcopy(IV, cipher->IV, MAX_IV_SIZE);
88 bzero(cipher->IV, MAX_IV_SIZE);
96 word8 block[16], iv[4][4]; local
120 bcopy(cipher->IV, block, 16);
121 bcopy(input, iv, 16);
122 ((word32*)block)[0] ^= ((word32*)iv)[0];
123 ((word32*)block)[1] ^= ((word32*)iv)[1]
210 word8 block[16], *iv, *cp; local
273 word8 block[16], iv[4][4]; local
372 word32 iv[4]; local
    [all...]
rijndael-api-fst.h 44 #define MAX_IV_SIZE 16 /* # bytes needed to represent an IV */
70 u_int8_t IV[MAX_IV_SIZE]; /* A possible Initialization Vector for ciphering */
86 int rijndael_cipherInit(cipherInstance *cipher, u_int8_t mode, char *IV);
  /external/llvm/lib/Transforms/Scalar/
SCCP.cpp 230 LatticeVal &IV = TrackedGlobals[GV];
232 IV.markConstant(GV->getInitializer());
307 void markConstant(LatticeVal &IV, Value *V, Constant *C) {
308 if (!IV.markConstant(C)) return;
310 if (IV.isOverdefined())
323 LatticeVal &IV = ValueState[V];
324 IV.markForcedConstant(C);
326 if (IV.isOverdefined())
336 void markOverdefined(LatticeVal &IV, Value *V) {
337 if (!IV.markOverdefined()) return
    [all...]
LoopRerollPass.cpp 71 // %iv = phi [ (preheader, ...), (body, %iv.next) ]
72 // f(%iv)
73 // %iv.1 = add %iv, 1 <-- a root increment
74 // f(%iv.1)
75 // %iv.2 = add %iv, 2 <-- a root increment
76 // f(%iv.2)
77 // %iv.scale_m_1 = add %iv, scale-1 <-- a root incremen
    [all...]
  /external/harfbuzz_ng/src/
hb-ot-shape-complex-sea-machine.rl 44 IV = 2; # Independent Vowel
56 consonant_syllable = (C|IV|GB) syllable_tail;
hb-ot-shape-complex-myanmar-machine.rl 49 IV = 2;
79 consonant_syllable = k? (c|IV|D|GB).VS? (H (c|IV).VS?)* syllable_tail;
  /external/clang/lib/StaticAnalyzer/Checkers/
DereferenceChecker.cpp 80 const ObjCIvarRefExpr *IV = cast<ObjCIvarRefExpr>(Ex);
82 << " ivar '" << IV->getDecl()->getName() << "')";
83 SourceLocation L = IV->getLocation();
151 const ObjCIvarRefExpr *IV = cast<ObjCIvarRefExpr>(S);
152 os << "Access to instance variable '" << *IV->getDecl()
154 AddDerefSource(os, Ranges, IV->getBase()->IgnoreParenCasts(),
  /external/llvm/lib/Analysis/
SparsePropagation.cpp 235 LatticeVal IV = LatticeFunc->ComputeInstructionState(PN, *this);
236 if (IV != LatticeFunc->getUntrackedVal())
237 UpdateState(PN, IV);
285 LatticeVal IV = LatticeFunc->ComputeInstructionState(I, *this);
286 if (IV != LatticeFunc->getUntrackedVal())
287 UpdateState(I, IV);
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherTest.java 61 private static final byte[] IV = new byte[] {
266 AlgorithmParameterSpec ap = new IvParameterSpec(IV);
271 assertTrue("IVs differ", Arrays.equals(cipherIV, IV));
295 AlgorithmParameterSpec ap = new IvParameterSpec(IV);
300 assertTrue("IVs differ", Arrays.equals(cipherIV, IV));
333 + ".iv");
334 IvParameterSpec iv = new IvParameterSpec(ivMaterial); local
336 c.init(Cipher.DECRYPT_MODE, k, iv);
391 + ".iv");
392 IvParameterSpec iv = new IvParameterSpec(ivMaterial) local
    [all...]
  /frameworks/compile/libbcc/lib/Renderscript/
RSForEachExpand.cpp 263 llvm::PHINode *IV;
278 // iv = PHI [CondBB -> LowerBound], [LoopHeader -> NextIV ]
279 // iv.next = iv + 1
280 // if (iv.next < Upperbound)
285 IV = Builder.CreatePHI(LowerBound->getType(), 2, "X");
286 IV->addIncoming(LowerBound, CondBB);
287 IVNext = Builder.CreateNUWAdd(IV, Builder.getInt32(1));
288 IV->addIncoming(IVNext, HeaderBB);
293 *LoopIV = IV;
    [all...]

Completed in 962 milliseconds

1 2 3 4 5