@@ -388,6 +388,11 @@ impl Cipher {
388
388
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_128_ecb ( ) as * mut _ ) }
389
389
}
390
390
391
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
392
+ pub fn camellia128_cbc ( ) -> & ' static CipherRef {
393
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_128_cbc ( ) as * mut _ ) }
394
+ }
395
+
391
396
#[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
392
397
pub fn camellia192_cfb128 ( ) -> & ' static CipherRef {
393
398
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_cfb128 ( ) as * mut _ ) }
@@ -398,6 +403,11 @@ impl Cipher {
398
403
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_ecb ( ) as * mut _ ) }
399
404
}
400
405
406
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
407
+ pub fn camellia192_cbc ( ) -> & ' static CipherRef {
408
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_cbc ( ) as * mut _ ) }
409
+ }
410
+
401
411
#[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
402
412
pub fn camellia256_cfb128 ( ) -> & ' static CipherRef {
403
413
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_cfb128 ( ) as * mut _ ) }
@@ -408,6 +418,11 @@ impl Cipher {
408
418
unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_ecb ( ) as * mut _ ) }
409
419
}
410
420
421
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAMELLIA" ) ) ]
422
+ pub fn camellia256_cbc ( ) -> & ' static CipherRef {
423
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_cbc ( ) as * mut _ ) }
424
+ }
425
+
411
426
#[ cfg( not( osslconf = "OPENSSL_NO_CAST" ) ) ]
412
427
pub fn cast5_cfb64 ( ) -> & ' static CipherRef {
413
428
unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_cfb64 ( ) as * mut _ ) }
@@ -418,6 +433,11 @@ impl Cipher {
418
433
unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_ecb ( ) as * mut _ ) }
419
434
}
420
435
436
+ #[ cfg( not( osslconf = "OPENSSL_NO_CAST" ) ) ]
437
+ pub fn cast5_cbc ( ) -> & ' static CipherRef {
438
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_cbc ( ) as * mut _ ) }
439
+ }
440
+
421
441
#[ cfg( not( osslconf = "OPENSSL_NO_IDEA" ) ) ]
422
442
pub fn idea_cfb64 ( ) -> & ' static CipherRef {
423
443
unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_cfb64 ( ) as * mut _ ) }
@@ -428,6 +448,11 @@ impl Cipher {
428
448
unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_ecb ( ) as * mut _ ) }
429
449
}
430
450
451
+ #[ cfg( not( osslconf = "OPENSSL_NO_IDEA" ) ) ]
452
+ pub fn idea_cbc ( ) -> & ' static CipherRef {
453
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_cbc ( ) as * mut _ ) }
454
+ }
455
+
431
456
#[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
432
457
pub fn chacha20 ( ) -> & ' static CipherRef {
433
458
unsafe { CipherRef :: from_ptr ( ffi:: EVP_chacha20 ( ) as * mut _ ) }
0 commit comments