@@ -166,6 +166,11 @@ impl Cipher {
166
166
unsafe { CipherRef :: from_ptr ( ffi:: EVP_aes_128_xts ( ) as * mut _ ) }
167
167
}
168
168
169
+ #[ cfg( not( boringssl) ) ]
170
+ pub fn aes_256_xts ( ) -> & ' static CipherRef {
171
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_aes_256_xts ( ) as * mut _ ) }
172
+ }
173
+
169
174
#[ cfg( not( boringssl) ) ]
170
175
pub fn aes_128_ctr ( ) -> & ' static CipherRef {
171
176
unsafe { CipherRef :: from_ptr ( ffi:: EVP_aes_128_ctr ( ) as * mut _ ) }
@@ -364,15 +369,29 @@ impl Cipher {
364
369
unsafe { CipherRef :: from_ptr ( ffi:: EVP_des_ede3 ( ) as * mut _ ) }
365
370
}
366
371
372
+ pub fn des_ede3_ecb ( ) -> & ' static CipherRef {
373
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_des_ede3_ecb ( ) as * mut _ ) }
374
+ }
375
+
367
376
pub fn des_ede3_cbc ( ) -> & ' static CipherRef {
368
377
unsafe { CipherRef :: from_ptr ( ffi:: EVP_des_ede3_cbc ( ) as * mut _ ) }
369
378
}
370
379
380
+ #[ cfg( not( boringssl) ) ]
381
+ pub fn des_ede3_cfb8 ( ) -> & ' static CipherRef {
382
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_des_ede3_cfb8 ( ) as * mut _ ) }
383
+ }
384
+
371
385
#[ cfg( not( boringssl) ) ]
372
386
pub fn des_ede3_cfb64 ( ) -> & ' static CipherRef {
373
387
unsafe { CipherRef :: from_ptr ( ffi:: EVP_des_ede3_cfb64 ( ) as * mut _ ) }
374
388
}
375
389
390
+ #[ cfg( not( boringssl) ) ]
391
+ pub fn des_ede3_ofb ( ) -> & ' static CipherRef {
392
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_des_ede3_ofb ( ) as * mut _ ) }
393
+ }
394
+
376
395
#[ cfg( not( osslconf = "OPENSSL_NO_RC4" ) ) ]
377
396
pub fn rc4 ( ) -> & ' static CipherRef {
378
397
unsafe { CipherRef :: from_ptr ( ffi:: EVP_rc4 ( ) as * mut _ ) }
@@ -393,6 +412,11 @@ impl Cipher {
393
412
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_128_cbc ( ) as * mut _ ) }
394
413
}
395
414
415
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
416
+ pub fn camellia128_ofb ( ) -> & ' static CipherRef {
417
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_128_ofb ( ) as * mut _ ) }
418
+ }
419
+
396
420
#[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
397
421
pub fn camellia192_cfb128 ( ) -> & ' static CipherRef {
398
422
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_cfb128 ( ) as * mut _ ) }
@@ -408,6 +432,11 @@ impl Cipher {
408
432
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_cbc ( ) as * mut _ ) }
409
433
}
410
434
435
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
436
+ pub fn camellia192_ofb ( ) -> & ' static CipherRef {
437
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_ofb ( ) as * mut _ ) }
438
+ }
439
+
411
440
#[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
412
441
pub fn camellia256_cfb128 ( ) -> & ' static CipherRef {
413
442
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_cfb128 ( ) as * mut _ ) }
@@ -423,6 +452,11 @@ impl Cipher {
423
452
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_cbc ( ) as * mut _ ) }
424
453
}
425
454
455
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
456
+ pub fn camellia256_ofb ( ) -> & ' static CipherRef {
457
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_ofb ( ) as * mut _ ) }
458
+ }
459
+
426
460
#[ cfg( not( osslconf = "OPENSSL_NO_CAST" ) ) ]
427
461
pub fn cast5_cfb64 ( ) -> & ' static CipherRef {
428
462
unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_cfb64 ( ) as * mut _ ) }
@@ -438,6 +472,11 @@ impl Cipher {
438
472
unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_cbc ( ) as * mut _ ) }
439
473
}
440
474
475
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAST" ) ) ]
476
+ pub fn cast5_ofb ( ) -> & ' static CipherRef {
477
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_ofb ( ) as * mut _ ) }
478
+ }
479
+
441
480
#[ cfg( not( osslconf = "OPENSSL_NO_IDEA" ) ) ]
442
481
pub fn idea_cfb64 ( ) -> & ' static CipherRef {
443
482
unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_cfb64 ( ) as * mut _ ) }
@@ -453,6 +492,11 @@ impl Cipher {
453
492
unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_cbc ( ) as * mut _ ) }
454
493
}
455
494
495
+ #[ cfg( not( osslconf = "OPENSSL_NO_IDEA" ) ) ]
496
+ pub fn idea_ofb ( ) -> & ' static CipherRef {
497
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_ofb ( ) as * mut _ ) }
498
+ }
499
+
456
500
#[ cfg( all( any( ossl110, libressl310) , not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
457
501
pub fn chacha20 ( ) -> & ' static CipherRef {
458
502
unsafe { CipherRef :: from_ptr ( ffi:: EVP_chacha20 ( ) as * mut _ ) }
0 commit comments